7 overrides of Focused
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
518
public override bool
Focused
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
40
public override bool
Focused
=> !HideFocusState && base.Focused;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
259
public override bool
Focused
=> _upDownEdit.Focused;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1096
public override bool
Focused
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
620
public override bool
Focused
=> _focused;
TextBoxTests.cs (1)
745
public override bool
Focused
=> IsFocused;
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
221
public override bool
Focused
226 references to Focused
System.Windows.Forms (111)
System\Windows\Forms\Control.cs (2)
5067
if (
Focused
&& ParentInternal is not null)
5084
return
Focused
;
System\Windows\Forms\Control.Ime.cs (3)
180
if (
Focused
)
320
if (!DesignMode && (inputLanguageTable != ImeModeConversion.UnsupportedTable) &&
Focused
)
412
if (
Focused
)
System\Windows\Forms\Controls\Buttons\Button.ButtonAccessibleObject.cs (1)
22
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out Control? owner) && owner.
Focused
),
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
71
&& (Control.
Focused
|| Control.MouseIsOver || (Control.IsDefault && Control.Enabled));
368
if (Control.
Focused
&& Control.ShowFocusCues)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (6)
77
if (Control.
Focused
&& Control.ShowFocusCues)
82
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0)))
165
if (Control.
Focused
&& Control.ShowFocusCues)
170
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0)))
259
if (Control.
Focused
&& Control.ShowFocusCues)
264
if (!(Control.IsDefault && Control.
Focused
&& (Control.FlatAppearance.BorderSize == 0)))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (2)
32
else if (Control.
Focused
|| Control.IsDefault)
170
if (Control.
Focused
&& Control.ShowFocusCues)
System\Windows\Forms\Controls\Buttons\CheckBox.CheckBoxAccessibleObject.cs (1)
49
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out Control? owner) && owner.
Focused
),
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
506
if (!
Focused
)
System\Windows\Forms\Controls\Buttons\RadioButton.RadioButtonAccessibleObject.cs (1)
39
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out RadioButton? owner) && owner.
Focused
),
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
522
if (base.
Focused
)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
142
if (this.TryGetOwnerAs(out DataGridView? owner) && owner.
Focused
&& owner.CurrentCell is not null)
220
return (VARIANT)(this.TryGetOwnerAs(out owner) && (IsModal || RowCount == 0) && owner.
Focused
);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (11)
3134
else if (_ptCurrentCell.X == -1 &&
Focused
)
4117
if (
Focused
5216
if ((!onlyIfGridHasFocus ||
Focused
) && EditingControl is not null)
14951
if (
Focused
&& EditMode == DataGridViewEditMode.EditOnEnter && _ptCurrentCell.X > -1 && !IsCurrentCellInEditMode)
16695
if (
Focused
&& IsGridFocusRectangleEnabled())
17470
if (
Focused
&& IsGridFocusRectangleEnabled() && oldGridFocusRectangle != newGridFocusRectangle)
18836
if (
Focused
&& IsGridFocusRectangleEnabled())
20061
if (
Focused
)
20122
if (_dataGridViewState1[State1_LeavingWithTabKey] &&
Focused
)
26958
if (
Focused
26991
if (
Focused
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (2)
734
if (PaintFocus(paintParts) && cellCurrent && DataGridView.ShowFocusCues && DataGridView.
Focused
)
883
DataGridView.
Focused
&&
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1137
DataGridView.
Focused
&&
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2255
DataGridView.
Focused
&&
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
894
&& DataGridView.
Focused
)
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (3)
981
DataGridView.
Focused
&&
1038
DataGridView.
Focused
&&
1052
DataGridView.
Focused
&&
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
314
dataGridView.
Focused
&&
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (1)
709
if (PaintFocus(paintParts) && DataGridView.ShowFocusCues && DataGridView.
Focused
&& notCollapsed)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1316
if (
Focused
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
101
if (_owningCheckedListBox.
Focused
&& _owningCheckedListBox.SelectedIndex == -1)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
725
if (
Focused
)
System\Windows\Forms\Controls\ListBoxes\ListBox.AccessibleObject.cs (2)
49
if (this.TryGetOwnerAs(out ListBox? owner) && owner.
Focused
)
107
? (VARIANT)(GetChildCount() == 0 && owner.
Focused
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1871
if (
Focused
&& FocusedItemIsChanged())
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
168
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningListBox.
Focused
&& _owningListBox.FocusedIndex == CurrentIndex),
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
191
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningListView.
Focused
&& Focused),
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
875
if (!lv.
Focused
)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
69
bool owningListViewFocused = _owningListView.
Focused
;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
123
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(_owningListView.
Focused
&& _owningListView.FocusedItem == _owningItem),
System\Windows\Forms\Controls\Menus\MenuStrip.cs (2)
202
if (!(
Focused
|| ContainsFocus))
234
if (
Focused
|| !ContainsFocus)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
203
internal bool Focused => this.TryGetOwnerAs(out MonthCalendar? owner) && owner.
Focused
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
104
if (
Focused
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (12)
823
if (EditTextBox.Focused || DialogButton.
Focused
|| DropDownButton.
Focused
)
849
if (DialogButton.
Focused
&& !gotFocus)
856
if (DropDownButton.
Focused
&& !gotFocus)
3882
else if (DialogButton.
Focused
|| DropDownButton.
Focused
)
3899
if (DialogButton.
Focused
|| DropDownButton.
Focused
)
3901
OnButtonClick(DialogButton.
Focused
? DialogButton : DropDownButton, EventArgs.Empty);
5209
if (
Focused
)
5227
if (EditTextBox.Focused || DropDownButton.
Focused
|| DialogButton.
Focused
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
40
public override bool Focused => !HideFocusState && base.
Focused
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
70
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out Control? owner) && owner.
Focused
),
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1702
bool focused =
Focused
;
1838
if (!
Focused
|| GetState(State.SelectFirstControl))
System\Windows\Forms\Controls\TabControl\TabControl.TabControlAccessibleObject.cs (1)
131
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out TabControl? owner) && owner.
Focused
),
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (1)
67
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out TabPage? owningTabPage) && owningTabPage.
Focused
),
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
462
if (!_flagState[s_isNullMask] && !
Focused
&& !MaskFull && !DesignMode)
1714
includePrompt = !(HidePromptOnLeave && !
Focused
);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
980
!
Focused
&&
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
39
return (VARIANT)owner.
Focused
;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (7)
433
if (!
Focused
)
1740
if (ContainsFocus && !
Focused
)
2845
if (
Focused
|| ContainsFocus)
3979
if (!DesignMode && !TabStop && (
Focused
|| ContainsFocus))
3988
if (KeyboardActive && !
Focused
&& !ContainsFocus)
4408
if (
Focused
&& (otherHwnd != Handle))
4414
else if (!ContainsFocus && !
Focused
)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.ToolStripContainerAccessibleObject.cs (1)
20
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out ToolStripContainer? owner) && owner.
Focused
),
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
211
public virtual bool Focused => ControlInternal.
Focused
;
350
public override bool Selected => _control is not null && _control.
Focused
;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (2)
86
if (!
Focused
)
243
bool focused = MouseIsOver ||
Focused
;
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarAccessibleObject.cs (1)
155
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out TrackBar? owner) && owner.
Focused
),
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1285
if (!tv.
Focused
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2841
Color color = (((curState & TreeNodeStates.Selected) == TreeNodeStates.Selected) && node.TreeView.
Focused
) ? SystemColors.HighlightText : (node.ForeColor != Color.Empty) ? node.ForeColor : node.TreeView.ForeColor;
3452
if (m.LParamInternal == PInvoke.UiaRootObjectId && SupportsUiaProviders && !IsAccessibilityObjectCreated &&
Focused
)
System\Windows\Forms\Controls\TreeView\TreeView.TreeViewAccessibleObject.cs (1)
86
if (owningTreeView.
Focused
)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
259
public override bool Focused => _upDownEdit.
Focused
;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1100
if (base.
Focused
)
System\Windows\Forms\Form.cs (3)
3235
if (
Focused
&& ActiveControl is null)
3717
return
Focused
;
4125
if (
Focused
&& IsAccessibilityObjectCreated && ActiveControl is null)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1458
if (_activeControl == value && (value is null || value.
Focused
))
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1214
if (
Focused
)
System\Windows\Forms\Layout\Containers\SplitContainer.SplitContainerAccessibleObject.cs (1)
21
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out SplitContainer? owner) && owner.
Focused
),
System\Windows\Forms\MDI\MdiWindowListStrip.cs (2)
172
if (dialog.ActiveChildForm?.ActiveControl is not null && !dialog.ActiveChildForm.ActiveControl.
Focused
)
190
if (boundForm.ActiveControl is not null && !boundForm.ActiveControl.
Focused
)
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
320
if (!
Focused
)
719
if (!e.ClipRectangle.Contains(focusRect) || !
Focused
|| !ShowFocusCues)
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (1)
23
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)owner.
Focused
,
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (1)
146
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out ScrollBar? owner) && owner.
Focused
),
System.Windows.Forms.Design (17)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (2)
66
if (PropertyGrid.
Focused
|| PropertyGrid.ContainsFocus)
94
if (PropertyGrid.
Focused
|| PropertyGrid.ContainsFocus)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (3)
164
State =
Focused
? PushButtonState.Default : PushButtonState.Normal;
236
if (
Focused
)
286
else if (
Focused
)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
310
if (_button is {
Focused
: false, Ellipsis: false })
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (3)
70
ButtonRenderer.DrawButton(g, new Rectangle(-1, -1, Width + 2, Height + 2), "…", Font,
Focused
, buttonState);
119
Focused
,
153
if (
Focused
)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
392
if (_focus.X == x && _focus.Y == y &&
Focused
)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
1018
if (_selectedColumns.
Focused
)
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1146
if (_frame.
Focused
)
System\Windows\Forms\Design\NavigationalTableLayoutPanel.cs (1)
40
if (radioButton.
Focused
)
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (4)
266
_ctrlCheckBox.
Focused
)
277
if (_ctrlCheckBox.
Focused
)
289
if (_shiftCheckBox.
Focused
)
295
if (_resetButton.
Focused
)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
77
Assert.False(control.
Focused
);
System.Windows.Forms.Tests (89)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (4)
520
Assert.Equal(focused, dataGridView.
Focused
);
537
Assert.Equal(focused, dataGridView.
Focused
);
586
Assert.Equal(focused, dataGridView.
Focused
);
605
Assert.Equal(focused, dataGridView.
Focused
);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
143
Assert.True(listBox.
Focused
);
System\Windows\Forms\AxHostTests.cs (2)
74
Assert.False(control.
Focused
);
168
Assert.False(control.
Focused
);
System\Windows\Forms\ButtonBaseTests.cs (7)
67
Assert.False(control.
Focused
);
8899
Assert.False(control.
Focused
);
8935
Assert.False(control.
Focused
);
8964
Assert.False(control.
Focused
);
9005
Assert.False(control.
Focused
);
9049
Assert.False(control.
Focused
);
9086
Assert.False(control.
Focused
);
System\Windows\Forms\ButtonTests.cs (1)
70
Assert.False(control.
Focused
);
System\Windows\Forms\CheckBoxTests.cs (2)
71
Assert.False(control.
Focused
);
870
checkBox.
Focused
.Should().BeTrue();
System\Windows\Forms\ContainerControlTests.cs (1)
78
Assert.False(control.
Focused
);
System\Windows\Forms\ControlTests.cs (7)
59
Assert.False(control.
Focused
);
148
Assert.False(control.
Focused
);
244
Assert.False(control.
Focused
);
340
Assert.False(control.
Focused
);
436
Assert.False(control.
Focused
);
1021
Assert.True(toolStrip1.
Focused
);
1026
Assert.True(toolStrip1.
Focused
);
System\Windows\Forms\ControlTests.Methods.cs (13)
2095
Assert.False(control.
Focused
);
13494
Assert.False(control.
Focused
);
13530
Assert.False(control.
Focused
);
13563
Assert.False(control.
Focused
);
13604
Assert.False(control.
Focused
);
13648
Assert.False(control.
Focused
);
13689
Assert.False(control.
Focused
);
13829
Assert.False(control.
Focused
);
13865
Assert.False(control.
Focused
);
13894
Assert.False(control.
Focused
);
13935
Assert.False(control.
Focused
);
13979
Assert.False(control.
Focused
);
14016
Assert.False(control.
Focused
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
75
Assert.False(control.
Focused
);
System\Windows\Forms\DateTimePickerTests.cs (1)
75
Assert.False(control.
Focused
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
91
Assert.False(control.
Focused
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
75
Assert.False(control.
Focused
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
72
Assert.False(control.
Focused
);
System\Windows\Forms\FormTests.cs (1)
93
Assert.False(control.
Focused
);
System\Windows\Forms\GroupBoxTests.cs (1)
63
Assert.False(control.
Focused
);
System\Windows\Forms\HScrollBarTests.cs (1)
70
Assert.False(control.
Focused
);
System\Windows\Forms\LabelTests.cs (1)
63
Assert.False(control.
Focused
);
System\Windows\Forms\ListBoxTests.cs (1)
70
Assert.False(control.
Focused
);
System\Windows\Forms\ListControlTests.cs (1)
66
Assert.False(control.
Focused
);
System\Windows\Forms\ListViewTests.cs (4)
77
Assert.False(control.
Focused
);
1250
Assert.False(control.
Focused
);
1256
Assert.False(control.
Focused
);
1262
Assert.False(control.
Focused
);
System\Windows\Forms\MdiClientTests.cs (1)
49
Assert.False(control.
Focused
);
System\Windows\Forms\MenuStripTests.cs (1)
78
Assert.False(control.
Focused
);
System\Windows\Forms\MonthCalendarTests.cs (1)
80
Assert.False(control.
Focused
);
System\Windows\Forms\PanelTests.cs (1)
72
Assert.False(control.
Focused
);
System\Windows\Forms\PictureBoxTests.cs (1)
67
Assert.False(control.
Focused
);
System\Windows\Forms\ProgressBarTests.cs (1)
60
Assert.False(control.
Focused
);
System\Windows\Forms\PropertyGridTests.cs (1)
101
Assert.False(control.
Focused
);
System\Windows\Forms\RadioButtonTests.cs (1)
70
Assert.False(control.
Focused
);
System\Windows\Forms\RichTextBoxTests.cs (1)
79
Assert.False(control.
Focused
);
System\Windows\Forms\ScrollableControlTests.cs (1)
71
Assert.False(control.
Focused
);
System\Windows\Forms\ScrollBarTests.cs (1)
60
Assert.False(control.
Focused
);
System\Windows\Forms\SplitterPanelTests.cs (1)
65
Assert.False(control.
Focused
);
System\Windows\Forms\SplitterTests.cs (1)
61
Assert.False(control.
Focused
);
System\Windows\Forms\StatusStripTests.cs (1)
78
Assert.False(control.
Focused
);
System\Windows\Forms\TabControlTests.cs (1)
63
Assert.False(control.
Focused
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
77
Assert.False(control.
Focused
);
System\Windows\Forms\TabPageTests.cs (2)
77
Assert.False(control.
Focused
);
186
Assert.False(control.
Focused
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
74
Assert.False(control.
Focused
);
System\Windows\Forms\ToolStripControlHostTests.cs (3)
84
Assert.Equal(c.
Focused
, item.Focused);
109
Assert.Equal(c.
Focused
, item.Selected);
2694
Assert.False(c.
Focused
);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
83
Assert.False(control.
Focused
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
74
Assert.False(control.
Focused
);
System\Windows\Forms\ToolStripTests.cs (2)
93
Assert.False(control.
Focused
);
247
Assert.False(control.
Focused
);
System\Windows\Forms\TreeViewTests.cs (1)
64
Assert.False(control.
Focused
);
System\Windows\Forms\UserControlTests.cs (1)
78
Assert.False(control.
Focused
);
System\Windows\Forms\VScrollBarTests.cs (1)
69
Assert.False(control.
Focused
);
TextBoxBaseTests.cs (6)
7282
Assert.False(control.
Focused
);
7318
Assert.False(control.
Focused
);
7351
Assert.False(control.
Focused
);
7392
Assert.False(control.
Focused
);
7436
Assert.False(control.
Focused
);
7477
Assert.False(control.
Focused
);
TrackBarTests.cs (1)
62
Assert.False(control.
Focused
);
System.Windows.Forms.UI.IntegrationTests (7)
ListBoxAccesibleObjectTests.cs (2)
24
listBox.
Focused
.Should().BeFalse();
28
listBox.
Focused
.Should().BeTrue();
ListBoxItemAccessibleObjestTests.cs (2)
59
listBox.
Focused
.Should().BeFalse();
67
listBox.
Focused
.Should().BeTrue();
MenuStripTests.cs (2)
25
menuStrip.
Focused
.Should().Be(value);
33
menuStrip.
Focused
.Should().Be(value);
PropertyGridTests.cs (1)
37
_propertyGrid.
Focused
.Should().BeFalse();
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
938
if (this.
Focused
|| this.ContainsFocus)