Hi Sameel,
You can use following code to remove back-stack and go First Page
private void backButton_Click(object sender, RoutedEventArgs e)
{
var rootFrame = (Window.Current.Content as Frame);
rootFrame.Navigate(typeof(FirstPage));
rootFrame.BackStack.Clear();
}
Don't
forget to mark the right answer and vote up if helps you.