예제 #1
0
 public void OnAboutMenuCommand(MainWindow window)
 {
     var childWindow = new Window();
     childWindow.Content = new AboutView();
     childWindow.Owner = window;
     childWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     childWindow.ResizeMode = ResizeMode.NoResize;
     childWindow.MaxHeight = 300;
     childWindow.MaxWidth = 500;
     childWindow.ShowDialog();
 }
예제 #2
0
 public void OnExitMenuCommand(MainWindow window)
 {
     window.Close();
 }