Thursday, May 1, 2014

Navigation Between one page to another page in Windows Phone 8

Navigation Between one page to another page in Windows Phone 8 

This post about how to navigate one page to another page  using NavigationService.
Navigation Service class provide method for one page to another page .

NavigationService.Navigate(new Uri("/Page1.xaml",UriKind.Relative));


I have create two xaml file MainPage.xaml and Page2.xaml
Mainpage.xaml having one button for onclick call another page.

private void Button_NextPage(object sender, RoutedEventArgs e){

NavigationService.Navigate(new Uri("/Page1.xaml",UriKind.Relative));
}

Result Output


No comments:

Post a Comment