I am new to WPF. I have two windows, such as window1 and window2. I have one button in window1. If I click that button, the window2 has to open. What should I do for that?>
You can use this code:
private void OnClickNavigate(object sender, RoutedEventArgs e) { NavigatedWindow navigatesWindow = new NavigatedWindow(); navigatesWindow.ShowDialog(); }