PivotControl item changing behavior in Silverlight Windows Phone 7

Posted by Rosarch on Stack Overflow See other posts from Stack Overflow or by Rosarch
Published on 2010-12-27T18:49:40Z Indexed on 2010/12/27 18:54 UTC
Read the original article Hit count: 126

Filed under:
|
|

I have an app where the user is sent to a page with a PivotControl. The SelectedIndex is not known until the user navigates to the page. I'm setting the SelectedIndex, but it causes the PivotControl to start on index 0, then flip through to the index I set.

This is kind of annoying, and I'd rather just have it go directly to the index I set. Is there some way around this?

One hack I thought up was providing the data to pivotControl.ItemsSource in an order such that the item I want the user to start on is index 0 in ItemsSource. But that would be kind of messy, and I'm wondering if there's a more elegant solution.

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight