Step 4 : Add a XAML page to our project where we want to navigate to; the code related to this page is given below:
Code :
<Page
    x:Class="App1.BlankPage1"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:App5"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
 
    <Grid Background="Yellow">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width=".333*"></ColumnDefinition>
            <ColumnDefinition Width=".333*"></ColumnDefinition>
            <ColumnDefinition Width=".333*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height=".333*"></RowDefinition>
            <RowDefinition Height=".333*"></RowDefinition>
            <RowDefinition Height=".333*"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="1" Grid.Row="0"  Text="LogOut Page" 
                   FontSize="20" FontWeight="ExtraBold" Foreground="Blue" 
                   Margin="20,200,20,20"></TextBlock>
         <Rectangle Grid.Column="1" Grid.Row="1" Fill="Red">
             
         </Rectangle>
        <TextBlock Grid.Column="1" Grid.Row="1" Text="Congratulation"
                   FontSize="30"  FontWeight="ExtraBold"
                   Margin="100,50"></TextBlock>
        <TextBlock Grid.Column="1" Grid.Row="1" Text="You Registered Successfully" 
                   FontSize="30" FontWeight="Bold" Margin="30,100"></TextBlock>
    </Grid>
</Page>
Step 5 : The MainPage.xaml.cs file is as in the following code:
Code :
 
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
 
namespace App5
{
    public sealed partial class MainPage : Page
    {
        public MainPage()
        {
            this.InitializeComponent();
           
        }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }
        private void bindData_Click(object sender, RoutedEventArgs e)
        {
            if (eName.Text != "" && id.Text != "" && econt.Text != "")
                this.Frame.Navigate(typeof(BlankPage1));
            else
                msg.Visibility = Windows.UI.Xaml.Visibility.Visible;
        }
    }
}
Step 6 : After running this code the output looks like this:
![img3.gif]()
![img4.gif]()
![img5.gif]()
![img6.gif]()