How can I implement removing the backStack Entry in Metro style applications?
相关问题
- Inheritance impossible in Windows Runtime Componen
- Replacing or recreating a file in Windows 8 RT kee
- Draw waveform from MP3 stream in C# on WinRT
- how to disable caching HTTP GET in metro app, I am
- ListView in a metro app does not get its vertical
相关文章
- Working with hmacsha256 in windows store app
- Show flyout using BottomAppBar
- New Windows Application - What language?
- Get English exception message instead of local lan
- How to remove an element from an IGrouping
- Exception when reading text from the file using Fi
- HttpUtility.HtmlDecode in WinRT
- libxml2 missing for nokogiri gem on Windows 8 x64
I found this answer useful:
How to clear Backstack of the frame and start afresh
Write your own NavigationService and store the navigationstate in the constructor.
Then implement this method on the service and call it when needed:
will clear the navigation history for you.
It doesn't seem to be possible. If you want to clear the back stack entirely (e.g. if you have a "home" button), you can use the code supplied in the LayoutAwarePage.cs file in the grid sample app.
While this doesn't actually clear the stack, it does take you back to the program's start location and there will be no further back-direction entries in the list. If you want to back out of a dead-end page by pressing a button, you could modify this behaviour to step back a number of pages and effectively remove the back entries.