I have a standalone app which contains lot of pages. Now if i need to delete a page, how do i do it? The page can contain a close button and on clicking it, that page has to be deleted. Then a page in forward or backward stack has to be displayed.
Edit: Also i have a button "New" in the page.
private void New_click(..)
{
this.NavigationService.Navigate(new Page1);
}
I had opened five pages, and if i navigate to the second page and click "New", a page is created and there is a total of three pages in the stack. The 3rd, 4th and 5th page created previously is gone. For this case, i want to create one more page, so that there's a total of six pages in the stack. And the close button should remove the current page from stack.