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