private void OnAbout(object sender, RoutedEventArgs e) { AbountWindow about = new AbountWindow(); about.Owner = this; about.WindowStartupLocation = WindowStartupLocation.CenterScreen; about.ShowDialog(); }
public void AboutCommand() { if (null == _abountWindow) { _abountWindow = new AbountWindow(); _abountWindow.Owner = this; _abountWindow.Closed += (o, e) => { _abountWindow = null; }; _abountWindow.Show(); this.MainMenuSubPopup.IsOpen = false; } }