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