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