Developer
Developer

Reputation: 183

Paging in the list

My second question in Windows Phone App 8.0

How can I achieve paging in the Long List container or any other container this is how I want to display

When user click Item Head 3 and Item Head 4 gets loaded. I do not want scrolling.

Is this possible?

Upvotes: 1

Views: 54

Answers (1)

Chubosaurus Software
Chubosaurus Software

Reputation: 8161

Have a master List<model> of all items (or items you continually downloading).

Link your Item 1 (I would call it A) and your Item 2 (I would could it B) to the primary list. Keep track of the location of the Items location in the List with a control Index.

Item A and B should be an ObservableCollection<model>. When the user clicks on Load Next -> move the location Index by one (in either direction), clear the ObservableCollection<model> and repopulate based on the master List<model> this way when you update, the Screen UI element binding will also update.

Upvotes: 0

Related Questions