31 references to ToolStripDropDownCloseReason
System.Windows.Forms (31)
winforms\Managed\System\WinForms\ToolStripDropDown.cs (18)
46private ToolStripDropDownCloseReason closeReason = ToolStripDropDownCloseReason.AppFocusChange; 1166SetCloseReason(ToolStripDropDownCloseReason.CloseCalled); 1175closeReason = ToolStripDropDownCloseReason.AppFocusChange; 1177internal void SetCloseReason(ToolStripDropDownCloseReason reason) { 1182public void Close(ToolStripDropDownCloseReason reason) { 1370Close(ToolStripDropDownCloseReason.ItemClicked); 1552SetCloseReason(ToolStripDropDownCloseReason.Keyboard); 1584SetCloseReason(ToolStripDropDownCloseReason.Keyboard); 1596SetCloseReason(ToolStripDropDownCloseReason.Keyboard); 1861ToolStripDropDownCloseReason reason = closeReason; 1869if (e.CloseReason != ToolStripDropDownCloseReason.CloseCalled) { 1901if ((reason == ToolStripDropDownCloseReason.AppClicked) || 1902(reason == ToolStripDropDownCloseReason.ItemClicked) || 1903(reason == ToolStripDropDownCloseReason.CloseCalled && topLevelToolStrip == parentToolStrip) || 1904(reason == ToolStripDropDownCloseReason.AppFocusChange && topLevelToolStrip == parentToolStrip)) { 1912if (reason == ToolStripDropDownCloseReason.ItemClicked) { 1968Debug.Assert(reason != ToolStripDropDownCloseReason.ItemClicked,
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (2)
129ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 148ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripDropDownClosedEventArgs.cs (3)
14ToolStripDropDownCloseReason closeReason; 16public ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason reason) { 20public ToolStripDropDownCloseReason CloseReason {
winforms\Managed\System\WinForms\ToolStripDropDownClosingEventArgs.cs (3)
18ToolStripDropDownCloseReason closeReason; 20public ToolStripDropDownClosingEventArgs(ToolStripDropDownCloseReason reason) { 25public ToolStripDropDownCloseReason CloseReason {
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
609parent.SetCloseReason(ToolStripDropDownCloseReason.Keyboard);
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1004internal static void CloseActiveDropDown(ToolStripDropDown activeToolStripDropDown, ToolStripDropDownCloseReason reason) { 1061CloseActiveDropDown(activeToolStripDropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
989ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
550ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);