How do I create a new instance of a page and store that in a listview item. So when it is selected and the load button is pressed it loads the page belonging to that listview item.
So far I have this:
when the listview item is created and added to the listview i do this:
new SplitPage();
hoping that it would create a new instance of the page and store it within that listview item's data.
i then navigate to the page when the load button is clicked which i tried below.
foreach (object it in listView.SelectedItems)
{
if (listView.SelectedItems.Count == 1) // only load the page if one item is selected
{
this.Frame.Navigate(typeof(SplitPage));
}
}
but im not sure if this is navigating to the listview item's page or just the page in general (generic page).