locked
Navigating to listview item's page RRS feed

  • Question

  • 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).



    • Edited by singh029 Friday, July 27, 2012 11:41 AM
    Friday, July 27, 2012 11:38 AM

Answers