18 writes to Focused
System.Windows.Forms (4)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
826
value.
Focused
= true;
5912
lvhti.Item.
Focused
= true;
7054
Items[0].
Focused
= true;
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (1)
415
this[index].
Focused
= false;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
606
_listViewCannedMasks.Items[0].
Focused
= true;
System.Windows.Forms.Tests (13)
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
751
listViewGroup.Items[0].
Focused
= true;
802
item1.
Focused
= true;
System\Windows\Forms\ListViewTests.cs (11)
4340
listView.Items[0].
Focused
= focused;
4403
listView.Items[0].
Focused
= focused;
4433
listView.Items[0].
Focused
= true;
4515
item1.
Focused
= focusItem;
4823
listView.Items[0].
Focused
= focused;
5353
listViewItem.
Focused
= true;
5481
listView.Items[0].
Focused
= true;
5799
listView.Items[0].
Focused
= true;
5815
listView.Items[0].
Focused
= true;
5831
listView.Items[0].
Focused
= true;
5847
listView.Items[0].
Focused
= true;
31 references to Focused
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4856
if (firstSelectedItem.
Focused
&& _selectedItem != firstSelectedItem)
6575
if (item.
Focused
)
System.Windows.Forms.Tests (29)
System\Windows\Forms\ListViewItemTests.cs (22)
19
Assert.False(item.
Focused
);
58
Assert.False(item.
Focused
);
96
Assert.False(item.
Focused
);
134
Assert.False(item.
Focused
);
172
Assert.False(item.
Focused
);
209
Assert.False(item.
Focused
);
246
Assert.False(item.
Focused
);
284
Assert.False(item.
Focused
);
322
Assert.False(item.
Focused
);
359
Assert.False(item.
Focused
);
397
Assert.False(item.
Focused
);
435
Assert.False(item.
Focused
);
472
Assert.False(item.
Focused
);
510
Assert.False(item.
Focused
);
548
Assert.False(item.
Focused
);
586
Assert.False(item.
Focused
);
623
Assert.False(item.
Focused
);
661
Assert.False(item.
Focused
);
699
Assert.False(item.
Focused
);
736
Assert.False(item.
Focused
);
775
Assert.False(item.
Focused
);
805
Assert.False(item.
Focused
);
System\Windows\Forms\ListViewTests.cs (7)
1232
Assert.Equal(expectedFocused, value?.
Focused
);
1238
Assert.Equal(expectedFocused, value?.
Focused
);
1275
Assert.Equal(expectedFocused, value?.
Focused
);
1280
Assert.Equal(expectedFocused, value?.
Focused
);
1293
Assert.True(value.
Focused
);
1298
Assert.True(value.
Focused
);
1303
Assert.True(value.
Focused
);