5 references to IsInDesignMode
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2103if (dropDown?.OwnerItem is not null && dropDown.OwnerItem.IsInDesignMode) 2135if (this is ToolStripDropDown dropDown && dropDown.OwnerItem is not null && (dropDown.OwnerItem.IsInDesignMode || (dropDown.OwnerItem.Owner is not null && dropDown.OwnerItem.Owner.IsInDesignMode)))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1353if (OwnerItem is not null && OwnerItem.IsInDesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
275if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown))