How to navigate to other page with button in WPF

后端 未结 7 1638
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 15:56

I have a second .xaml page set up under the name Page2.xaml and I want to make it so that when my button is clicked, the user is taken to <

7条回答
  •  臣服心动
    2021-02-05 16:11

    private void Navigate_Click(object sender, RoutedEventArgs e)//By Prince Jain 
    {
        this.NavigationService.Navigate(new Uri("Page3.xaml", UriKind.Relative));
    }
    

提交回复
热议问题