Sachin123
Sachin123

Reputation: 251

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

Upvotes: 0

Views: 175

Answers (1)

Poojan Dave
Poojan Dave

Reputation: 119

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;

Upvotes: 2

Related Questions