I have a WPF application, and my button is in WINDOW, which I added, and I want the button to open PAGE when I click on it.
NavigationService nav = NavigationService.GetNavigationService(this);
nav.Navigate(new Uri("xamlFeedbackPage.xaml", UriKind.RelativeOrAbsolute));
I tried this code, which was online, and my application crashes when I click the button.
Any help?
source
share