2

I am using a ListView in a Windows 8 Metro style app and I want to programatically make it scroll to a point where a particular item is in the view.

Is this possible?

Chris Bowen - MSFT
  • 9,589
  • 1
  • 17
  • 13
nzhenry
  • 752
  • 8
  • 15

1 Answers1

3

Not sure if you're working with JavaScript or XAML, but in JavaScript you should be able to just set the ensureVisible(index) property of the ListView. This will make sure that item is visible, scrolling the ListView if necessary:

In XAML, the ScrollIntoView(object) should be what you need. (For SemanticZoom, see MakeVisible.)

Chris Bowen - MSFT
  • 9,589
  • 1
  • 17
  • 13