2

This question relates to WinRT.

How can I know which items are currently showing on a ListView (partially or fully)?

Barring that, how do I find what the top item in the ListView is?

Looked around the ListView class and couldn't really find anything.

Shahar Prish
  • 4,838
  • 3
  • 26
  • 47

1 Answers1

0

To find the top one you can do:

ListViewItem topItem = listView1.TopItem;

Not sure about seeing how far down is visible, but if it's helpful you can also do...

listView1.Items[0].EnsureVisible();

...to make a specific item in the list visible - it'll scroll for you automatically if needed.

GoldieLocks
  • 845
  • 7
  • 22