5 references to IsInDesignMode
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2105if (dropDown?.OwnerItem is not null && dropDown.OwnerItem.IsInDesignMode) 2137if (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)
1356if (OwnerItem is not null && OwnerItem.IsInDesignMode)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (2)
275if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown))