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)
2680
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2682
return _hitTestedGlyph.
Behavior
.OnMouseDoubleClick(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2694
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2696
return _hitTestedGlyph.
Behavior
.OnMouseDown(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2708
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2710
return _hitTestedGlyph.
Behavior
.OnMouseMove(_hitTestedGlyph, e.Button, new Point(e.X, e.Y));
2722
if (_hitTestedGlyph is not null && _hitTestedGlyph.
Behavior
is not null)
2724
return _hitTestedGlyph.
Behavior
.OnMouseUp(_hitTestedGlyph, e.Button);
2752
if (g is DesignerActionGlyph desGlyph && ((DesignerActionBehavior)(desGlyph.
Behavior
)).RelatedComponent.Equals(trayControl.Component))