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)
3183if (IsOnDropDown) 3185if (OwnerItem is not null && OwnerItem.IsOnDropDown) 3209(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 398if (ShowShortcutKeys && IsOnDropDown) 862if (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)
785if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 802else if (item.IsOnDropDown && item.Placement != ToolStripItemPlacement.Overflow) 845if (KeyboardHandlingService.SelectedDesignerControl is ToolStripItem designerItem && designerItem.IsOnDropDown) 901if (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)
864if (typeHereNode.IsOnDropDown && !typeHereNode.IsOnOverflow) 959if (typeHereNode.IsOnDropDown) 1260if (item is not null && item.IsOnDropDown) 1288if (!owner.IsOnDropDown) 1387if (dropDownItem is not null && !dropDownItem.IsOnDropDown) 1412if (!(parentToMoveOn.OwnerItem.IsOnDropDown) && (parentToMoveOn.OwnerItem.Owner is not null && parentToMoveOn.OwnerItem.Owner.Site is not null)) 1457if (!(parentToMoveOn.OwnerItem.IsOnDropDown) && (parentToMoveOn.OwnerItem.Owner is not null && parentToMoveOn.OwnerItem.Owner.Site is not null)) 1739if (toolStripItem.IsOnDropDown && toolStripItem.Placement != ToolStripItemPlacement.Overflow) 1743else if (toolStripItem.IsOnDropDown && toolStripItem.Placement == ToolStripItemPlacement.Overflow) 1804if (currentSelection is DesignerToolStripControlHost templateNodeItem && (!templateNodeItem.IsOnDropDown || (templateNodeItem.IsOnDropDown && templateNodeItem.IsOnOverflow))) 1861if (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) 1893if (e.Component is ToolStripItem itemToBeDeleted && itemToBeDeleted.IsOnDropDown) 1976if (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); 5818Assert.False(item.IsOnDropDown); 5829Assert.True(item.IsOnDropDown); 5843Assert.False(item.IsOnDropDown); 5845Assert.True(item.IsOnDropDown); 5856Assert.False(item.IsOnDropDown); 5867Assert.True(item.IsOnDropDown); 5881Assert.False(item.IsOnDropDown); 5883Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
71Assert.False(item.IsOnDropDown);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
63Assert.False(item.IsOnDropDown);