67 references to BehaviorService
System.Windows.Forms.Design (66)
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
96BehaviorService?.SyncSelection();
System\Windows\Forms\Design\ControlDesigner.cs (12)
653BehaviorService?.StartDragNotification(); 663BehaviorService?.EndDragNotification(); 682Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(Control) ?? Rectangle.Empty; 736if (BehaviorService is null) 741Rectangle translatedBounds = BehaviorService.ControlRectInAdornerWindow(Control); 1301if (BehaviorService is null && _mouseDragLast != InvalidPoint) 1349if (BehaviorService is not null && BehaviorService.Dragging && cancel) 1351BehaviorService.CancelDrag = true; 1406if (BehaviorService is not null && selectionService is not null) 1437using Graphics adornerGraphics = BehaviorService.AdornerWindowGraphics; 1439BehaviorService.DoDragDrop(dsb);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
512Point loc = BehaviorService.ControlToAdornerWindow((Control)Component);
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (5)
385BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(Control)); 449Point offset = BehaviorService.AdornerWindowToScreen(); 466BehaviorService.Invalidate(invalidRect); 481using Graphics graphics = BehaviorService.AdornerWindowGraphics;
System\Windows\Forms\Design\ParentControlDesigner.cs (17)
996Rectangle controlRect = BehaviorService.ControlRectInAdornerWindow(Control); 1003Rectangle parentRect = BehaviorService.ControlRectInAdornerWindow(parent); 1041Point loc = BehaviorService.ControlToAdornerWindow((Control)Component); 1431BehaviorService?.EndDragNotification(); 1587if ((_mouseDragTool is not null) && BehaviorService is not null && BehaviorService.UseSnapLines) 1590_toolboxItemSnapLineBehavior ??= new ToolboxItemSnapLineBehavior(Component.Site, BehaviorService, this, AllowGenericDragBox); 1594BehaviorService.PushBehavior(_toolboxItemSnapLineBehavior); 1645BehaviorService.PopBehavior(_toolboxItemSnapLineBehavior); 1749_adornerWindowToScreenOffset = BehaviorService.AdornerWindowToScreen(); 1793BehaviorService.Invalidate(newRegion); 1906BehaviorService.PopBehavior(_toolboxItemSnapLineBehavior); 1929if (_dragManager is null && ParticipatesWithSnapLines && _mouseDragTool is not null && BehaviorService.UseSnapLines) 1970_graphics ??= BehaviorService.AdornerWindowGraphics; 2003BehaviorService.Invalidate(oldRegion); 2055BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(Control));
System\Windows\Forms\Design\SplitContainerDesigner.cs (6)
200Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(_splitterPanel1!) ?? Rectangle.Empty; 211translatedBounds = BehaviorService?.ControlRectInAdornerWindow(_splitterPanel2!) ?? Rectangle.Empty; 317BehaviorService?.EnableAllAdorners(true); 362if (BehaviorService is not null) 364foreach (Adorner adorner in BehaviorService.Adorners) 374BehaviorService.Invalidate();
System\Windows\Forms\Design\TabControlDesigner.cs (3)
396private void OnRightToLeftLayoutChanged(object sender, EventArgs e) => BehaviorService?.SyncSelection(); 637BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(Control));
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
1075Point loc = BehaviorService.MapAdornerWindowPoint(Table.Handle, Table.DisplayRectangle.Location); 1078Point controlLoc = BehaviorService.ControlToAdornerWindow(Control); 1708BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(Control)); 2124BehaviorService.SyncSelection();
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
234Rectangle translatedBounds = BehaviorService?.ControlRectInAdornerWindow(currentPanel) ?? Rectangle.Empty; 298Rectangle controlBounds = BehaviorService?.ControlRectInAdornerWindow(dropDownItem.DropDown) ?? Rectangle.Empty; 328Rectangle controlBounds = BehaviorService?.ControlRectInAdornerWindow(associatedControl) ?? Rectangle.Empty;
System\Windows\Forms\Design\ToolStripDesigner.cs (12)
1078BehaviorService.Invalidate(_boundsToInvalidate); 1322Rectangle parentBounds = BehaviorService.ControlRectInAdornerWindow(parent); 1368Point loc = BehaviorService.ControlToAdornerWindow((Control)Component); 1934BehaviorService.SyncSelection(); 2039BehaviorService.Invalidate(BehaviorService.ControlRectInAdornerWindow(ToolStrip)); 2147BehaviorService.SyncSelection(); 2169BehaviorService.SyncSelection(); 2369BehaviorService.SyncSelection(); 2476BehaviorService.SyncSelection(); 2486BehaviorService.SyncSelection(); 2502BehaviorService.SyncSelection();
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
358BehaviorService?.Invalidate(_containerSelectorGlyph.Bounds);
System.Windows.Forms.Design.Tests (1)
TestControlDesigner.cs (1)
21return BehaviorService;