2015-08-07 17 views

risposta

12

Se siete nel codice della pagina dietro, Hai provato a fare:

this.Frame.BackStack.Clear(); 

o se sei da qualche altra parte (come un ViewModel), avete provato:

var frame = Window.Current.Content as Frame; 
frame.BackStack.Clear(); 
0

In il codice sottostante, puoi provare questo:

protected override void OnNavigatedFrom(NavigationEventArgs e){ 
    if (this.GetType().HasRegionAttribute()){ 
     base.PopFromBackStackTo(typeof(LastViewModel)); 
    }  
    base.OnNavigatedFrom(e); 
} 
Problemi correlati