private void showSettings() { var asw = new AppSettingsWindow(); asw.Owner = App.Current.MainWindow; asw.ShowDialog(); }
private void Settings_Click(object sender, RoutedEventArgs e) { var dialog = new AppSettingsWindow(); if (dialog.ShowDialog() == true) { // do something } }
public static AppSettingsWindow Create() { var window = new AppSettingsWindow() { DataContext = new AppSettingsViewModel() }; Config.Instance.RestoreWindow(Config.WindowKey.AppSettings, window); (window.DataContext as WindowViewModel)?.SetWindowOwner(window); TextOptions.SetTextFormattingMode(window); return(window); }
private void ExecShowAppSettings(object obj) { //Todo: Add the functionality for ShowAppSettingsCmd Here var catOpts = new AppSettingsWindow(); catOpts.ShowDialog(); }