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