How about, in my application I have a Cancel button, when you click on it, a Pop Up window appears that asks if you want to cancel or not, when you click on it, you must close the Pop Up window and the window in the one that was and send me to the Home, he does it, but he does not close the parent window of Pop Up, do you have any idea how I can do it? I'm using WPF and the MVVM pattern.
This is the button code:
private void btn_yes_Click(object sender, RoutedEventArgs e)
{
Proyecto.Desktop.View.HomeView newWin = new HomeView();
Proyecto.Desktop.View.ParentWindow parent= new ParentWindow();
parent.Close();
newWin.Show();
this.Close();
}
Thanks, Regards!