12 types derived from Behavior
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (1)
17internal sealed class ContainerSelectorBehavior : Behavior
System\Windows\Forms\Design\Behavior\DesignerActionBehavior.cs (1)
18internal sealed class DesignerActionBehavior : Behavior
System\Windows\Forms\Design\Behavior\DesignerActionKeyboardBehavior.cs (1)
8internal sealed class DesignerActionKeyboardBehavior : Behavior
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
19internal sealed partial class DropSourceBehavior : Behavior, IComparer
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (1)
17internal class ResizeBehavior : Behavior
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (1)
12internal class TableLayoutPanelBehavior : Behavior
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
17internal class ToolboxItemSnapLineBehavior : Behavior
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
11internal sealed class ToolStripPanelSelectionBehavior : Behavior
System\Windows\Forms\Design\ControlDesigner.TransparentBehavior.cs (1)
16internal class TransparentBehavior : Behavior.Behavior
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
292public class FilterCutCopyPasteDeleteBehavior : Behavior.Behavior
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
746internal class ContextMenuStripBehavior : Behavior.Behavior
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
19internal class ToolStripItemBehavior : Behavior.Behavior
60 references to Behavior
System.Design (1)
artifacts\obj\System.Design.Facade\Release\net9.0\System.Design.Forwards.cs (1)
69[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Windows.Forms.Design.Behavior.Behavior))]
System.Windows.Forms.Design (58)
System\ComponentModel\Design\DesignerActionUI.cs (1)
628Behavior? popBehavior = _behaviorService.PopBehavior(_designerActionKeyboardBehavior);
System\Windows\Forms\Design\Behavior\Behavior.cs (16)
38private Behavior? GetNextBehavior => _behaviorService?.GetNextBehavior(this); 92private Behavior? GetGlyphBehavior(Glyph? g) 114else if (GetGlyphBehavior(g) is Behavior behavior) 132else if (GetGlyphBehavior(g) is Behavior behavior) 154else if (GetGlyphBehavior(g) is Behavior behavior) 174else if (GetGlyphBehavior(g) is Behavior behavior) 195else if (GetGlyphBehavior(g) is Behavior behavior) 214else if (GetGlyphBehavior(g) is Behavior behavior) 235else if (GetGlyphBehavior(g) is Behavior behavior) 258else if (GetGlyphBehavior(g) is Behavior behavior) 279else if (GetGlyphBehavior(g) is Behavior behavior) 294else if (GetGlyphBehavior(g) is Behavior behavior) 309else if (GetGlyphBehavior(g) is Behavior behavior) 324else if (GetGlyphBehavior(g) is Behavior behavior) 343else if (GetGlyphBehavior(g) is Behavior behavior) 358else if (GetGlyphBehavior(g) is Behavior behavior)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (17)
34private readonly List<Behavior> _behaviorStack; // the stack behavior objects can be pushed to and popped from 35private Behavior? _captureBehavior; // the behavior that currently has capture; may be null 144public Behavior? CurrentBehavior => _behaviorStack.Count > 0 ? _behaviorStack[0] : null; 337public Behavior? GetNextBehavior(Behavior behavior) 387public Behavior? PopBehavior(Behavior behavior) 427public void PushBehavior(Behavior behavior) 446public void PushCaptureBehavior(Behavior behavior) 471Behavior b = _captureBehavior; 522if (_behaviorStack is [Behavior behavior, ..]) 541Behavior? behavior = GetAppropriateBehavior(_hitTestedGlyph); 571private Behavior? GetAppropriateBehavior(Glyph? g) 636Behavior? behavior = GetAppropriateBehavior(g); 660Behavior? behavior = GetAppropriateBehavior(g); 724Behavior? behavior = GetAppropriateBehavior(_hitTestedGlyph); 819Behavior? behavior = GetAppropriateBehavior(_hitTestedGlyph);
System\Windows\Forms\Design\Behavior\ComponentGlyph.cs (1)
22public ComponentGlyph(IComponent? relatedComponent, Behavior? behavior)
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
34public Behavior? RelatedBehavior => _relatedBehavior;
System\Windows\Forms\Design\Behavior\ControlBodyGlyph.cs (1)
35public ControlBodyGlyph(Rectangle bounds, Cursor? cursor, IComponent? relatedComponent, Behavior? behavior)
System\Windows\Forms\Design\Behavior\Glyph.cs (4)
18private Behavior? _behavior; 23protected Glyph(Behavior? behavior) 32public virtual Behavior? Behavior => _behavior; 61protected void SetBehavior(Behavior? behavior)
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (1)
22internal GrabHandleGlyph(Rectangle controlBounds, GrabHandleGlyphType type, Behavior? behavior, bool primarySelection)
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
26internal MiniLockedBorderGlyph(Rectangle controlBounds, SelectionBorderGlyphType type, Behavior behavior)
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
21internal NoResizeHandleGlyph(Rectangle controlBounds, SelectionRules selRules, bool primarySelection, Behavior? behavior)
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
16internal NoResizeSelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules, SelectionBorderGlyphType type, Behavior? behavior)
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (1)
16internal SelectionBorderGlyph(Rectangle controlBounds, SelectionRules rules, SelectionBorderGlyphType type, Behavior? behavior)
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (1)
22internal SelectionGlyphBase(Behavior? behavior) : base(behavior)
System\Windows\Forms\Design\Behavior\TableLayoutPanelResizeGlyph.cs (1)
20internal TableLayoutPanelResizeGlyph(Rectangle controlBounds, TableLayoutStyle style, Cursor hitTestCursor, Behavior behavior) : base(behavior)
System\Windows\Forms\Design\ControlDesigner.cs (2)
668internal Behavior.Behavior MoveBehavior 845internal virtual Behavior.Behavior StandardBehavior => _resizeBehavior ??= new ResizeBehavior(Component.Site);
System\Windows\Forms\Design\DesignerToolStripControlHost.cs (1)
35internal GlyphCollection GetGlyphs(ToolStrip parent, GlyphCollection glyphs, Behavior.Behavior standardBehavior)
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
493Behavior.Behavior toolStripBehavior = new ToolStripItemBehavior(); 668Behavior.Behavior toolStripBehavior = new ToolStripItemBehavior(); 1270Behavior.Behavior toolStripBehavior = new ToolStripItemBehavior();
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
569public void GetGlyphs(ref GlyphCollection glyphs, Behavior.Behavior standardBehavior)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
14public ToolStripItemGlyph(ToolStripItem item, ToolStripItemDesigner itemDesigner, Rectangle bounds, Behavior.Behavior? b) : base(bounds, Cursors.Default, item, b)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
393Behavior.Behavior toolStripBehavior = new ToolStripItemBehavior(); 2600internal ToolStripDropDownGlyph(Rectangle bounds, Behavior.Behavior b) : base(b)
System.Windows.Forms.Design.Tests (1)
SerializableAttributeTests.cs (1)
12typeof(Behavior.Behavior).Assembly,