Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear Back Stack Navigation Windows 10

I want to Clear my Navigation Back Stack History ...

I tried to use this.NavigationService.RemoveBackEntry(); but It didn't work.

How could I do this in Windows 10?

like image 214
Shahriar Avatar asked Aug 07 '15 20:08

Shahriar


1 Answers

If you're in page code behind, have you tried doing:

this.Frame.BackStack.Clear();

or if you're somewhere else (like a ViewModel), have you tried:

var frame = Window.Current.Content as Frame;
frame.BackStack.Clear();
like image 182
Igor Ralic Avatar answered Oct 26 '22 11:10

Igor Ralic