2013-12-20 40 views
0

我正在開發一個windows phone 8閱讀器應用程序。Windows phone8 xaml全景動態綁定

我正在使用全景控制來顯示書頁。當我刷新全景itemsource它會自動滾動到第一個item.how以避免它?任何幫助..?

+0

您想讓全景圖在刷新儀式前返回頁面嗎? –

回答

2
Panorama p = new Panorama(); 

int index = p.selectedIndex; 

here p.selectedIndex返回當前頁面的索引。在刷新之前存儲此索引,並在頁面加載時設置

p.selectedIndex = index;