I'm starting to work with WPF projects in C # and I'm designing the application with blend, but I can not find a way to change the page. I have a login and when I click enter, how can I change pages in the same frame?
I'm starting to work with WPF projects in C # and I'm designing the application with blend, but I can not find a way to change the page. I have a login and when I click enter, how can I change pages in the same frame?
To move from one page to another you must use NavigationService
General Navigation Information
then you could do something like being
void button_Click(object sender, RoutedEventArgs e)
{
this.NavigationService.Navigate(new Uri("AnotherPage.xaml", UriKind.Relative));
}
To navigate a frame is the same technique
Working with WPF Frame using C # and XAML
only that you apply it to the frame
Frame1.Navigate(new System.Uri("Page1.xaml", UriKind.RelativeOrAbsolute));