简体   繁体   English

Windows phone8 xaml全景动态绑定

[英]Windows phone8 xaml panorama dynamic binding

I am working on a windows phone 8 reader application. 我正在开发一个Windows Phone 8阅读器应用程序。

I am using panorama control to display book pages.When I refresh panorama itemsource it automatically scroll's to first item.how to avoid it? 我正在使用全景控制来显示书页。当我刷新全景项目itemsource它会自动滚动到第一个项目以避免它吗? Any help..? 任何帮助..?

Panorama p = new Panorama();

int index = p.selectedIndex;

here p.selectedIndex returns you the index of current page. 这里p.selectedIndex返回当前页面的索引。 Store this index before refresh and when the page loaded set 在刷新之前和页面加载设置时存储此索引

p.selectedIndex = index;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM