简体   繁体   中英

Windows phone8 xaml panorama dynamic binding

I am working on a windows phone 8 reader application.

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? Any help..?

Panorama p = new Panorama();

int index = p.selectedIndex;

here p.selectedIndex returns you the index of current page. Store this index before refresh and when the page loaded set

p.selectedIndex = index;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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