Requirements
Visual Studio 2015 or higher version with Windows SDK.
Step 1: Open Visual Studio 2015. Go to File and go to New. Subsequently go to project.
File→New→Project

Step 2: We can choose Visual C# and select Windows. Select the universal and next select the Blank App (Universal Windows).
Visual C#→Windows→universal→Blank App(Universal Windows)
Step 3: Choose the target and the minimum platform version, which your Universal Windows Application will support.

Step 4: Open Mainpage.XAML. Add the following codes, given below:

The design page is given below:

Step 5: Open Mainpage.cs file. Add the codes, given below:
- namespace morepages
- {
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class MainPage: Page
- {
- public MainPage() {
- this.InitializeComponent();
- }
- private void button_Click(object sender, RoutedEventArgs e) {}
- private void button1_Click(object sender, RoutedEventArgs e) {
- this.Frame.Navigate(typeof(BlankPage2));
- }
- private void button2_Click(object sender, RoutedEventArgs e) {
- this.Frame.Navigate(typeof(BlankPage3));
- }
- }
- }
- namespace morepages {
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class BlankPage2: Page {
- public BlankPage2() {
- this.InitializeComponent();
- }
- private void button_Click(object sender, RoutedEventArgs e) {
- this.Frame.Navigate(typeof(MainPage));
- }
- }
- }
- namespace morepages
- {
- /// <summary>
- /// An empty page that can be used on its own or navigated to within a Frame.
- /// </summary>
- public sealed partial class BlankPage3: Page {
- public BlankPage3() {
- this.InitializeComponent();
- }
- private void button_Click(object sender, RoutedEventArgs e) {
- this.Frame.Navigate(typeof(MainPage));
- }
- }
- }


Step 6: You can run the project.

Step 7: You can see the output.





SubashPosted Sep 7, 2016, 3:48 AM EDT
Nice one
Ravi KandelPosted Aug 13, 2016, 10:55 PM EDT
Nice
Delpin Susai RajTOP 100Posted Aug 12, 2016, 9:26 PM EDT
Nice Article
Vignesh ManiTOP 100Posted Aug 12, 2016, 8:24 AM EDT
Nice
Suresh MPosted Aug 12, 2016, 2:09 AM EDT
Try to give exact heading, because you are not mention how to create new page. you are only showing how to navigate to new page.
Prasanna MuraliPosted Aug 11, 2016, 10:45 PM EDT
Nice share