I will show you how to remove navigation back entry in windows phone in different ways:
// To Remove Single Entry NavigationService.RemoveBackEntry(); |
To remove all navigation back entry
while (NavigationService.CanGoBack)
NavigationService.RemoveBackEntry();
Remove navigation back entry except MainPage
if (NavigationService.BackStack.Any())
{
var length = NavigationService.BackStack.Count() - 1;
var i = 0;
while (i < length)
{
NavigationService.RemoveBackEntry();
i++;
}
}