1 write to _relatedControl
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
23
_relatedControl
= containerControl;
16 references to _relatedControl
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (16)
47
switch (
_relatedControl
.Dock)
50
_relatedControl
.Padding = new Padding(0, 0, 0, DefaultBounds);
53
_relatedControl
.Padding = new Padding(0, 0, DefaultBounds, 0);
56
_relatedControl
.Padding = new Padding(DefaultBounds, 0, 0, 0);
59
_relatedControl
.Padding = new Padding(0, DefaultBounds, 0, 0);
66
selection?.SetSelectedComponents(new object[] {
_relatedControl
}, SelectionTypes.Replace);
93
_relatedControl
.Padding = new Padding(0);
104
if (
_relatedControl
.Parent is not null)
106
if (currentSelection !=
_relatedControl
.Parent)
108
selectionService?.SetSelectedComponents(new object[] {
_relatedControl
.Parent }, SelectionTypes.Replace);
112
Control parent =
_relatedControl
.Parent;
163
Control newParent =
_relatedControl
;
230
if (dragComponent is ToolStrip tool && tool.Parent !=
_relatedControl
)
237
if (expandPanel &&
_relatedControl
.Parent is { } root)
275
host.GetDesigner(
_relatedControl
) is ToolStripPanelDesigner toolStripPanelDesigner
282
oleDragDropHandler?.CreateTool(item,
_relatedControl
, 0, 0, 0, 0, false, false);