3 writes to DropDown
System.Windows.Forms (3)
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
185
system.
DropDown
= ToolStripDropDownMenu.FromHMenu(UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false), target);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
65
DropDown
= CreateDefaultDropDown();
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
320
((ToolStripMenuItem)itemToAdd).
DropDown
= FromHMenu(info.hSubMenu, targetWindow);
83 references to DropDown
System.Windows.Forms (83)
winforms\Managed\System\WinForms\MDIControlStrip.cs (5)
176
system.
DropDown
.Items.Clear();
177
system.
DropDown
.Dispose();
188
system.
DropDown
.Dispose();
239
this.
DropDown
.SelectNextToolStripItem(null, true);
245
if (HasDropDownItems &&
DropDown
.Visible) {
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (2)
70
MergeItem.
DropDown
.SuspendLayout();
135
MergeItem.
DropDown
.ResumeLayout(false);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1545
ToolStripDropDownMenu menu = this.zoomToolStripSplitButton.
DropDown
as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStrip.cs (11)
1811
this.OverflowButton.
DropDown
.ShowItemToolTips = value;
2168
CommonProperties.xClearPreferredSizeCache(this.OverflowButton.
DropDown
);
2169
this.OverflowButton.
DropDown
.LayoutRequired = true;
2172
LayoutTransaction.DoLayout(this.OverflowButton.
DropDown
, e.Item, PropertyNames.Items);
2173
this.OverflowButton.
DropDown
.Invalidate();
2182
this.OverflowButton.
DropDown
.LayoutRequired = true;
2189
||!this.OverflowButton.
DropDown
.Visible
2190
|| !this.OverflowButton.
DropDown
.IsHandleCreated;
2199
return (toolStripOverflowButton == null || !toolStripOverflowButton.HasDropDown) ? null : toolStripOverflowButton.
DropDown
as ToolStripOverflow;
2661
OverflowButton.
DropDown
.HandleItemClick(dismissingItem);
4401
if (item is ToolStripControlHost && this.OverflowButton.
DropDown
.IsRestrictedWindow) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
840
return ownerItem.Owner.OverflowButton.
DropDown
;
1368
|| (dismissingItem is ToolStripSplitButton && !dismissingItem.
DropDown
.Visible) // clicking on the split button button dismisses
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
128
if (
DropDown
.Visible) {
129
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(
DropDown
, ToolStripDropDownCloseReason.AppClicked);
148
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(
DropDown
, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (37)
164
if (HasDropDownItems &&
DropDown
.Visible) {
165
DropDown
.Location = DropDownLocation;
243
return
DropDown
.Items;
282
if (
DropDown
.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown)) {
283
return
DropDown
.OwnerItem == this &&
DropDown
.Visible;
382
Rectangle dropDownBounds = new Rectangle(Point.Empty,
DropDown
.GetSuggestedSize());
419
DropDown
.Visible = false;
449
if (
DropDown
.Visible) {
450
LayoutTransaction.DoLayout(
DropDown
, this, PropertyNames.RightToLeft);
453
CommonProperties.xClearPreferredSizeCache(
DropDown
);
454
DropDown
.LayoutRequired = true;
462
if (HasDropDown &&
DropDown
.IsAutoGenerated) {
463
DropDown
.DoLayoutIfHandleCreated(new ToolStripItemEventArgs(this));
494
if (
DropDown
.OwnerItem == this) {
508
if (
DropDown
.OwnerItem == this) {
512
if (!
DropDown
.IsAutoGenerated) {
513
DropDown
.OwnerItem = null;
528
if (
DropDown
.OwnerItem == this) {
537
return
DropDown
.ProcessCmdKeyInternal(ref m, keyData);
563
this.
DropDown
.SelectNextToolStripItem(null, true);
585
this.
DropDown
.SelectNextToolStripItem(null, true);
692
if (this.
DropDown
== this.ParentInternal) {
722
KeyboardToolTipStateMachine.Instance.Hook(this.
DropDown
, toolTip);
727
KeyboardToolTipStateMachine.Instance.Unhook(this.
DropDown
, toolTip);
747
foreach (ToolStripItem childItem in item.
DropDown
.Items) {
842
if (owner != null && owner.
DropDown
!= null && owner.
DropDown
.Visible) {
843
owner.
DropDown
.Close();
849
return owner.
DropDown
.Visible ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed;
857
return owner.
DropDown
.AccessibilityObject.GetChild(index);
872
if (owner.
DropDown
.LayoutRequired) {
873
LayoutTransaction.DoLayout(owner.
DropDown
, owner.
DropDown
, PropertyNames.Items);
875
return owner.
DropDown
.AccessibilityObject.GetChildCount();
913
var toolStripAccessibleObject = owner.
DropDown
.AccessibilityObject as ToolStrip.ToolStripAccessibleObject;
922
if (owner == null || owner.
DropDown
== null) {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3844
parent = (IsOnOverflow && Owner != null)? Owner.OverflowButton.
DropDown
: Owner;
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1964
tsddownSrc.
DropDown
.SuspendLayout();
1979
tsddownSrc.
DropDown
.ResumeLayout();
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (4)
859
DropDown
.SelectNextToolStripItem(null, /*forward=*/true);
967
showDropDown = !
DropDown
.Visible;
989
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(
DropDown
, ToolStripDropDownCloseReason.AppClicked);
1174
DropDown
.SelectNextToolStripItem(null, /*forward=*/true);
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
52
this.
DropDown
.Dispose();
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (12)
206
return
DropDown
.Visible != true;
234
return
DropDown
.Visible;
517
if (!
DropDown
.Visible) {
545
if (
DropDown
.Visible) {
550
ToolStripManager.ModalMenuFilter.CloseActiveDropDown(
DropDown
, ToolStripDropDownCloseReason.AppClicked);
844
if (ownerItem != null && ownerItem.
DropDown
!= null && ownerItem.
DropDown
.Visible) {
845
ownerItem.
DropDown
.Close();
851
return ownerItem.
DropDown
.Visible ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed;
858
return DropDownItemsCount > 0 ? ownerItem.
DropDown
.Items[0].AccessibilityObject : null;
860
return DropDownItemsCount > 0 ? ownerItem.
DropDown
.Items[ownerItem.
DropDown
.Items.Count - 1].AccessibilityObject : null;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
374
item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.
DropDown
: null;
499
item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.
DropDown
: null;