95 references to IsOnDropDown
System.Windows.Forms (29)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
56_autoMenuExpandTimer.Interval = item.IsOnDropDown ? _slowShow : _quickShow;
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
241if (keyData == Keys.Space && SupportsSpaceKey && CheckOnClick && Enabled && !IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
107protected internal override Padding DefaultMargin => IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (7)
137if (IsOnDropDown) 275if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown)) 322if (!IsOnDropDown) 499(IsOnDropDown 569bool isTopLevel = (!IsOnDropDown || IsOnOverflow); 614if (IsOnDropDown) 665if (IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (3)
179if (!e.Item.IsOnDropDown && e.Item.Pressed) 184if (e.Item is ToolStripMenuItem menuItem && !e.Item.IsOnDropDown && (menuItem.Checked || menuItem.Selected)) 242&& !e.Item.IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
3141if (IsOnDropDown) 3143if (OwnerItem is not null && OwnerItem.IsOnDropDown) 3167(IsOnDropDown
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (4)
77if (_ownerItem.IsOnDropDown) 258nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Up) : 262nextItem = (Owner.IsOnDropDown) ? parent.GetNextItem(Owner, ArrowDirection.Down) : 318if (Owner.IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (4)
164if (IsOnDropDown) 220protected override Padding DefaultPadding => IsOnDropDown 397if (ShowShortcutKeys && IsOnDropDown) 857if (IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (2)
558if (item.IsOnDropDown) 1461if (!item.IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
106if (ownerItem is not null && ownerItem.ParentInternal is not null && !ownerItem.IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
445if (item.IsOnDropDown)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
75protected internal override Padding DefaultMargin => IsOnDropDown ? _defaultDropDownMargin : _defaultMargin;
System.Windows.Forms.Design (42)
System\Windows\Forms\Design\ToolStripDesigner.cs (4)
779if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 795else if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 838if (KeyboardHandlingService.SelectedDesignerControl is ToolStripItem designerItem && designerItem.IsOnDropDown) 894if (e.Component is ToolStripItem newItem && _addingItem && !newItem.IsOnDropDown)
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (5)
59if (!(item is ToolStripControlHost && item.IsOnDropDown)) 62if (item is ToolStripMenuItem && item.IsOnDropDown) 67else if (item is ToolStripControlHost && !item.IsOnDropDown) 71else if (item is ToolStripMenuItem && !item.IsOnDropDown) 450selItem is ToolStripSeparator || selItem is ToolStripControlHost || !selItem.IsOnDropDown || selItem.IsOnOverflow)
System\Windows\Forms\Design\ToolStripItemBehavior.cs (6)
432if (glyphItem.IsOnDropDown && ToolStripDesigner.s_shiftState) 549if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.IsOnDropDown))) 558else if (glyphItem.IsOnDropDown) 612else if (glyphItem.IsOnDropDown && !glyphItem.IsOnOverflow) 979if (glyphItem.Placement == ToolStripItemPlacement.Overflow || (glyphItem.Placement == ToolStripItemPlacement.Main && !(glyphItem.IsOnDropDown))) 1000else if (glyphItem.IsOnDropDown)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (7)
206if (ToolStripItem.IsOnDropDown && !ToolStripItem.IsOnOverflow) 264if (item.IsOnDropDown) 427if (newItem is not null && !newItem.IsOnDropDown) 582if (ToolStripItem.IsOnDropDown) 738if (ToolStripItem.IsOnDropDown) 857if (newItem.IsOnDropDown && ownerItemDesigner is not null) 985if (currentSelection.IsOnDropDown)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
44if (Item is ToolStripControlHost && Item.IsOnDropDown)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (12)
848if (typeHereNode.IsOnDropDown && !typeHereNode.IsOnOverflow) 943if (typeHereNode.IsOnDropDown) 1244if (item is null || !item.IsOnDropDown) 1273if (!owner.IsOnDropDown) 1369if (dropDownItem is not null && !dropDownItem.IsOnDropDown) 1401&& !parentToMoveOn.OwnerItem.IsOnDropDown 1443&& !parentToMoveOn.OwnerItem.IsOnDropDown 1722if (toolStripItem.IsOnDropDown && toolStripItem.Placement != ToolStripItemPlacement.Overflow) 1726else if (toolStripItem.IsOnDropDown && toolStripItem.Placement == ToolStripItemPlacement.Overflow) 1787if (currentSelection is DesignerToolStripControlHost templateNodeItem && (!templateNodeItem.IsOnDropDown || (templateNodeItem.IsOnDropDown && templateNodeItem.IsOnOverflow))) 1844if (item is not null && item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow)
System\Windows\Forms\Design\ToolStripMenuItemCodeDomSerializer.cs (1)
37if (value is ToolStripMenuItem { IsOnDropDown: false } item)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (4)
292if (toolItem.IsOnDropDown && toolItem.Owner is ToolStripDropDown dropDown) 328if (!ToolStripItem.IsOnOverflow && ToolStripItem.IsOnDropDown) 1877if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown) 1960if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown && itemToBeDeleted.Placement == ToolStripItemPlacement.Main)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (2)
570if (!selectedItem.IsOnDropDown) 888if (_activeItem is ToolStripDropDownItem item && !item.IsOnDropDown)
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripButtonTests.cs (6)
66Assert.False(item.IsOnDropDown); 147Assert.False(item.IsOnDropDown); 234Assert.False(item.IsOnDropDown); 324Assert.False(item.IsOnDropDown); 412Assert.False(item.IsOnDropDown); 510Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
95Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
66Assert.False(item.IsOnDropDown); 155Assert.False(item.IsOnDropDown); 254Assert.False(item.IsOnDropDown); 362Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripItemTests.cs (11)
65Assert.False(item.IsOnDropDown); 150Assert.False(item.IsOnDropDown); 245Assert.False(item.IsOnDropDown); 5817Assert.False(item.IsOnDropDown); 5828Assert.True(item.IsOnDropDown); 5842Assert.False(item.IsOnDropDown); 5844Assert.True(item.IsOnDropDown); 5855Assert.False(item.IsOnDropDown); 5866Assert.True(item.IsOnDropDown); 5880Assert.False(item.IsOnDropDown); 5882Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
71Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
63Assert.False(item.IsOnDropDown);