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)
47switch (_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); 66selection?.SetSelectedComponents(new object[] { _relatedControl }, SelectionTypes.Replace); 93_relatedControl.Padding = new Padding(0); 104if (_relatedControl.Parent is not null) 106if (currentSelection != _relatedControl.Parent) 108selectionService?.SetSelectedComponents(new object[] { _relatedControl.Parent }, SelectionTypes.Replace); 112Control parent = _relatedControl.Parent; 163Control newParent = _relatedControl; 230if (dragComponent is ToolStrip tool && tool.Parent != _relatedControl) 237if (expandPanel && _relatedControl.Parent is { } root) 275host.GetDesigner(_relatedControl) is ToolStripPanelDesigner toolStripPanelDesigner 282oleDragDropHandler?.CreateTool(item, _relatedControl, 0, 0, 0, 0, false, false);