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