private void ContentFrame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e) { while (ContentFrame.CanGoBack) { ContentFrame.RemoveBackEntry(); } }