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