2015-08-07 18 views

Odpowiedz

12

Jeśli jesteś w kodzie strony z tyłu, czy próbowałeś robić:

this.Frame.BackStack.Clear(); 

lub jeśli jesteś gdzieś indziej (jak ViewModel), czy próbowałeś:

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

W kod za, możesz spróbować:

protected override void OnNavigatedFrom(NavigationEventArgs e){ 
    if (this.GetType().HasRegionAttribute()){ 
     base.PopFromBackStackTo(typeof(LastViewModel)); 
    }  
    base.OnNavigatedFrom(e); 
} 
Powiązane problemy