12 writes to FocusedItem
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
469
_listViewCannedMasks.
FocusedItem
= _listViewCannedMasks.Items[maskDexIndex];
System.Windows.Forms.Tests (11)
System\Windows\Forms\ListViewTests.cs (11)
1228
FocusedItem
= value
1235
control.
FocusedItem
= value;
1248
control.
FocusedItem
= value;
1254
control.
FocusedItem
= value;
1260
control.
FocusedItem
= null;
1273
control.
FocusedItem
= value;
1278
control.
FocusedItem
= value;
1291
control.
FocusedItem
= value;
1296
control.
FocusedItem
= value;
1301
control.
FocusedItem
= null;
4665
control.
FocusedItem
= item1;
30 references to FocusedItem
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListView\ListView.cs (5)
4708
if (ShowItemToolTips && Items.Count > 0 && (
FocusedItem
?? Items[0]) is ListViewItem focusedItem)
4723
NotifyAboutLostFocus(
FocusedItem
);
6719
ListViewItem? focusedItem =
FocusedItem
;
6817
NotifyAboutLostFocus(
FocusedItem
);
7056
if (
FocusedItem
is null && Items.Count > 0)
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (1)
185
: (owningListView.
FocusedItem
?.AccessibilityObject ?? owningListView.FocusedGroup?.AccessibilityObject);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
70
bool owningListItemFocused = _owningListView.
FocusedItem
== _owningItem;
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.Design (1)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
601
if (_listViewCannedMasks.
FocusedItem
is not null || _listViewCannedMasks.Items.Count <= 0)
System.Windows.Forms.Tests (20)
System\Windows\Forms\ListViewTests.cs (20)
78
Assert.Null(control.
FocusedItem
);
1230
Assert.Null(control.
FocusedItem
);
1236
Assert.Null(control.
FocusedItem
);
1249
Assert.Null(control.
FocusedItem
);
1255
Assert.Null(control.
FocusedItem
);
1261
Assert.Null(control.
FocusedItem
);
1274
Assert.Null(control.
FocusedItem
);
1279
Assert.Null(control.
FocusedItem
);
1292
Assert.Same(value, control.
FocusedItem
);
1297
Assert.Same(value, control.
FocusedItem
);
1302
Assert.Same(value, control.
FocusedItem
);
4552
Assert.Null(control.
FocusedItem
);
5801
Assert.NotNull(listView.
FocusedItem
);
5805
Assert.Null(listView.
FocusedItem
);
5817
Assert.NotNull(listView.
FocusedItem
);
5821
Assert.Null(listView.
FocusedItem
);
5833
Assert.NotNull(listView.
FocusedItem
);
5837
Assert.Null(listView.
FocusedItem
);
5849
Assert.NotNull(listView.
FocusedItem
);
5853
Assert.Null(listView.
FocusedItem
);
WinFormsControlsTest (1)
ListViewTest.cs (1)
213
var item = ((ListView)sender).
FocusedItem
;