开发者

tombstoning with pivotview containing N pivot items

I have a pivotview in which the items are created dynamically. The views in each one is flyweig开发者_Go百科ht & virtualized so memory does not exceed the max allowed. When tombstoning occurs, I save the object which the number of pivot items is based on as well as the selected index of the pivotview. After returning to the page, the pivot items are successfully re-created, but when you set the selected index, I get an unhandled exception in App.xaml.cs that says "the parameter is incorrect" I have verified this as the source of the exception by commenting out the line that sets the pivotview.SelectedIndex value.

any ideas as to why this happens?


Setting the pivot's SelectedIndex can be done in the Loaded event.

This issue is documented here.

Unhandled Exception When Setting Pivot Control SelectedItem/SelectedIndex Property to 3rd Pivot Item (WP7) | Microsoft Connect

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜