コード例 #1
0
        private void OnAbout(object sender, RoutedEventArgs e)
        {
            AbountWindow about = new AbountWindow();

            about.Owner = this;
            about.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            about.ShowDialog();
        }
コード例 #2
0
 public void AboutCommand()
 {
     if (null == _abountWindow)
     {
         _abountWindow = new AbountWindow();
         _abountWindow.Owner = this;
         _abountWindow.Closed += (o, e) => { _abountWindow = null; };
         _abountWindow.Show();
         this.MainMenuSubPopup.IsOpen = false;
     }
 }