23 writes to TopLevel
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1435ToolStrip.OverflowButton.DropDown.TopLevel = false; 2074ddi.DropDown.TopLevel = false;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1112ddi.DropDown.TopLevel = false; 1596MenuItem.DropDown.TopLevel = false;
System.Windows.Forms.Tests (19)
System\Windows\Forms\ToolStripDropDownTests.cs (19)
227TopLevel = topLevel, 411TopLevel = false, 528TopLevel = false 704TopLevel = false, 1329TopLevel = false, 1361TopLevel = false, 2046TopLevel = false, 2199TopLevel = false, 2836control.TopLevel = value; 2845control.TopLevel = value; 2854control.TopLevel = !value; 2880control.TopLevel = value; 2889control.TopLevel = value; 2898control.TopLevel = !value; 2913TopLevel = false, 2916Assert.Throws<ArgumentException>("value", () => control.TopLevel = true); 2917control.TopLevel = false; 3904TopLevel = topLevel, 3943TopLevel = topLevel,
17 references to TopLevel
System.Windows.Forms (9)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (9)
223cp.Style |= TopLevel ? unchecked((int)WINDOW_STYLE.WS_POPUP) : (int)WINDOW_STYLE.WS_CHILD; 226bool topLevel = TopLevel; 943if (TopLevel) 989if (TopLevel) 1597if (TopLevel) 1619if (TopLevel) 1735if (TopLevel && (!IsDisposed || !Disposing)) 1754if (!DesignMode && IsFirstDropDown && OwnerItem is not null && TopLevel) 1798if (_state[s_stateLayered] && IsHandleCreated && TopLevel)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2072if (ddi.DropDown.TopLevel)
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripDropDownTests.cs (7)
150Assert.True(control.TopLevel); 2837Assert.Equal(value, control.TopLevel); 2846Assert.Equal(value, control.TopLevel); 2855Assert.Equal(!value, control.TopLevel); 2881Assert.Equal(value, control.TopLevel); 2890Assert.Equal(value, control.TopLevel); 2899Assert.Equal(!value, control.TopLevel);