12 references to AppFocusChange
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
25private ToolStripDropDownCloseReason _closeReason = ToolStripDropDownCloseReason.AppFocusChange; 972_closeReason = ToolStripDropDownCloseReason.AppFocusChange; 1681(reason == ToolStripDropDownCloseReason.AppFocusChange && topLevelToolStrip == parentToolStrip))
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (2)
78if (e.CloseReason == ToolStripDropDownCloseReason.AppFocusChange && _cancelClose) 87else if (e.CloseReason is ToolStripDropDownCloseReason.AppFocusChange or ToolStripDropDownCloseReason.AppClicked)
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripDropDownClosedEventArgsTests.cs (1)
11[InlineData((ToolStripDropDownCloseReason.AppFocusChange - 1))]
System\Windows\Forms\ToolStripDropDownClosingEventArgsTests.cs (1)
11[InlineData((ToolStripDropDownCloseReason.AppFocusChange - 1))]
System\Windows\Forms\ToolStripDropDownTests.cs (5)
3713yield return new object[] { null, new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.AppFocusChange) }; 3715yield return new object[] { new SubToolStripItem(), new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.AppFocusChange) }; 3729yield return new object[] { designModeOwnerItem, new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.AppFocusChange) }; 3806yield return new object[] { new ToolStripDropDownClosingEventArgs(ToolStripDropDownCloseReason.AppFocusChange) }; 4964[InlineData(ToolStripDropDownCloseReason.AppFocusChange)]