23 references to Behavior
System.Windows.Forms.Design (23)
System\ComponentModel\Design\DesignerActionUI.cs (6)
214
if (designerActionGlyph.
Behavior
is DesignerActionBehavior behavior)
334
if (glyphWithPanelToRegen.
Behavior
is DesignerActionBehavior behaviorWithPanelToRegen)
392
if (relatedGlyph.
Behavior
is DesignerActionBehavior behavior)
399
if (relatedGlyph.
Behavior
is DesignerActionBehavior behavior)
491
if (glyph.
Behavior
is DesignerActionBehavior behavior)
618
DesignerActionBehavior behavior = (DesignerActionBehavior)currentGlyph.
Behavior
!;
System\Windows\Forms\Design\Behavior\Behavior.cs (3)
94
return g?.
Behavior
is not null && g.
Behavior
!= this ? g.
Behavior
: null;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
513
return (_hitTestedGlyph.
Behavior
is ControlDesigner.TransparentBehavior);
573
return _behaviorStack.Count > 0 ? _behaviorStack[0] : g?.
Behavior
;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (3)
128
if (
Behavior
is null)
131
IComponent relatedComponent = ((DesignerActionBehavior)
Behavior
).RelatedComponent;
189
if (
Behavior
is DesignerActionBehavior behavior)
System\Windows\Forms\Design\ComponentTray.cs (9)
2689
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2691
return _hitTestedGlyph.
Behavior
.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2703
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2705
return _hitTestedGlyph.
Behavior
.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2717
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2719
return _hitTestedGlyph.
Behavior
.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2731
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2733
return _hitTestedGlyph.
Behavior
.OnMouseUp(_hitTestedGlyph, e.Button);
2761
if (g is DesignerActionGlyph desGlyph && ((DesignerActionBehavior)(desGlyph.
Behavior
)).RelatedComponent.Equals(trayControl.Component))