コード例 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     // Перейти к экземпляру страницы
     MyProperties nextPage = new MyProperties();
     MyFrame.NavigationService.Navigate(nextPage);
     
     // Или перейти на страницу с заданным URI
     // this.NavigationService.Navigate(new Uri("PhotoPage.xaml", UriKind.Relative));
 }
コード例 #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // Перейти к экземпляру страницы
            MyProperties nextPage = new MyProperties();

            MyFrame.NavigationService.Navigate(nextPage);

            // Или перейти на страницу с заданным URI
            // this.NavigationService.Navigate(new Uri("PhotoPage.xaml", UriKind.Relative));
        }