private btnBackstageExit_Click ( object sender, RoutedEventArgs e ) : void | ||
sender | object | |
e | RoutedEventArgs | |
return | void |
private void btnBackstageExit_Click(object sender, RoutedEventArgs e) {
//! We call Shutdown() so to explicit shutdown the app regardless of windows closing cancel flag.
if (this.IsMultipleWindowsOpened)
this.Close();
else
Application.Current.Shutdown();
}