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);
570
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)
2668
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2670
return _hitTestedGlyph.
Behavior
.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2682
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2684
return _hitTestedGlyph.
Behavior
.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2696
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2698
return _hitTestedGlyph.
Behavior
.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2710
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2712
return _hitTestedGlyph.
Behavior
.OnMouseUp(_hitTestedGlyph, e.Button);
2740
if (g is DesignerActionGlyph desGlyph && ((DesignerActionBehavior)(desGlyph.
Behavior
)).RelatedComponent.Equals(trayControl.Component))