示例#1
0
        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
            }
        }
示例#3
0
            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);
            }
示例#4
0
 private void ExecShowAppSettings(object obj)
 {
     //Todo: Add the functionality for ShowAppSettingsCmd Here
     var catOpts = new AppSettingsWindow();
     catOpts.ShowDialog();
 }