1 write to _behaviorService
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
148
_behaviorService
= serviceProvider.GetRequiredService<BehaviorService>();
11 references to _behaviorService
System.Windows.Forms.Design (11)
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (11)
149
if (!(serviceProvider.GetService(typeof(IDesignerHost)) is IDesignerHost host) ||
_behaviorService
is null)
157
_graphics =
_behaviorService
.AdornerWindowGraphics;
202
controlBounds.Location = controlRect.Location =
_behaviorService
.ControlToAdornerWindow(controlDesigner.Control);
381
_behaviorService
.Invalidate(invalidRect);
401
_behaviorService
.Invalidate(invalidRect);
541
_dragOffset =
_behaviorService
.ControlToAdornerWindow(targetControl);
545
_dragOffset =
_behaviorService
.MapAdornerWindowPoint(rootControl.Handle, Point.Empty);
689
Rectangle currentBounds = new(
_behaviorService
.ControlToAdornerWindow(targetControl), targetControl.Size);
1087
Rectangle dragBounds = new(
_behaviorService
.ControlToAdornerWindow(targetControl), targetControl.Size);
1190
if (
_behaviorService
is not null)
1199
_behaviorService
.RecentSnapLines = lines;