How to programmatically set selected Panorama item in WP7

后端 未结 6 687
春和景丽
春和景丽 2020-11-30 10:37

I\'m using a panorama control in a WP7 app. One of the PanoramaItems takes you to another page, which then allows you send an email through the EmailComposeTask. If you don\

6条回答
  •  孤城傲影
    2020-11-30 10:58

    I'm not sure if you can programmatically force an animation to another PanoramaItem, but you can change the Panorama.DefaultItem.

    So you might have 3 PanoramaItem's and on the OnNavigatedTo() handler, change the default item via:

    panoramaControl.DefaultItem = panoramaControl.Items[indexToSet];
    

    This should help when you recover from a tombstone.

提交回复
热议问题