I have a listview working in virtual mode, in the LargeIcons view. Retrieves are expensive, so I want to ask for the data for all the visible items. How do I get the start
foreach (var t in listView1.Items)
{
var lvitem = listView1.ItemContainerGenerator.ContainerFromItem(t) as ListViewItem;
if (lvitem == null) continue;
//lvitem will = null if it is not visible
// otherwise do stuff with lvitem such as:
lvitem.Foreground = Brushes.Green;
}