16 references to BehaviorService
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (16)
205
bool useSnapLines =
BehaviorService
.UseSnapLines;
231
BehaviorService
.EnableAllAdorners(false);
356
BehaviorService
.PushCaptureBehavior(this);
371
Debug.Assert(
BehaviorService
is not null, "We should have a behavior service.");
372
if (
BehaviorService
is not null)
381
Rectangle borderRect =
BehaviorService
.ControlRectInAdornerWindow(control);
384
using Graphics graphics =
BehaviorService
.AdornerWindowGraphics;
389
BehaviorService
.Invalidate(newRegion);
397
BehaviorService
.EnableAllAdorners(true);
400
BehaviorService
.PopBehavior(this);
404
BehaviorService
.Invalidate(_lastResizeRegion); // might be the same, might not.
641
Rectangle oldBorderRect =
BehaviorService
.ControlRectInAdornerWindow(control);
795
newBorderRect =
BehaviorService
.ControlRectInAdornerWindow(control);
864
BehaviorService
.Invalidate(oldRegion);
870
using (Graphics graphics =
BehaviorService
.AdornerWindowGraphics)
877
BehaviorService
.Invalidate(_lastResizeRegion); // might be the same, might not.