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)
149if (!(serviceProvider.GetService(typeof(IDesignerHost)) is IDesignerHost host) || _behaviorService is null) 157_graphics = _behaviorService.AdornerWindowGraphics; 202controlBounds.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); 689Rectangle currentBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size); 1087Rectangle dragBounds = new(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size); 1190if (_behaviorService is not null) 1199_behaviorService.RecentSnapLines = lines;