12 references to AppFocusChange
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
25
private 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)
78
if (e.CloseReason == ToolStripDropDownCloseReason.
AppFocusChange
&& _cancelClose)
87
else 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)
3713
yield return new object[] { null, new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.
AppFocusChange
) };
3715
yield return new object[] { new SubToolStripItem(), new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.
AppFocusChange
) };
3729
yield return new object[] { designModeOwnerItem, new ToolStripDropDownClosedEventArgs(ToolStripDropDownCloseReason.
AppFocusChange
) };
3806
yield return new object[] { new ToolStripDropDownClosingEventArgs(ToolStripDropDownCloseReason.
AppFocusChange
) };
4964
[InlineData(ToolStripDropDownCloseReason.
AppFocusChange
)]