I’m wanting to use a datasource to go through records but one at a time per page.
So I’d like a whole page to be dedicated to a single record.
How would I do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Easiest way is just swap out the DataContext on the page. So don’t bind to the list, bind to individual items in list.
Now obviously you would have to add bounds checking to make sure you don’t go past the last question, or before the first question, but you get the idea.
If you are using MVVM the idea is pretty much the same – you want the viewmodel to model a single item rather than the list of items, then you just swap the data for that current item as you navigate forward or backwards.