I haven\'t had much luck finding the answer through google searches, but is it possible to tell which page a user came from?
Or, send a query string on back button
You can use the NavigationService.BackStack property and check the first entry in the back stack in the page as it is navigated to.
If this check needs to be done in several pages, it could be put into a base class. Also, if your situation fits the eula/login scenario mentioned by @Skomski, his answer makes the most sense.
protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
{
base.OnNavigatedTo(e);
var lastPage = NavigationService.BackStack.FirstOrDefault();
if (lastPage != null && lastPage.Source.ToString() == "/MainPage.xaml")
{
NavigationService.RemoveBackEntry();
}
}