I have a ListView and grouped items inside of it. User has different ways of navigating into the page, and according to the way he navigates, I wish to have a certain group in view when the page opens.
I tried setting these:
itemGridView.ScrollIntoView(....);
itemGridView.SelectedIndex = ....;
itemGridView.SelectedItem = ....;
where itemGridView is the name of the ListView, but none of that seems to work.
Any help appreciated, thanks.
You could do some visual tree traversing to find the ScrollViewer that is part of the ListView template, find the group and scroll the ScrollViewer to the position of your group.