コード例 #1
0
        private void PreferencesWindow_Click(object sender, RoutedEventArgs e)
        {
            var prefWindow = new PreferencesWindow();

            prefWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            prefWindow.ShowDialog();
        }
コード例 #2
0
        private void MenuPreferences_OnClick(object sender, RoutedEventArgs e)
        {
            var pw = new PreferencesWindow
            {
                Settings = Settings,
                Owner    = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            pw.ShowDialog();
        }
コード例 #3
0
        private void PreferencesWindow_Click(object sender, RoutedEventArgs e)
        {
            var prefWindow = new PreferencesWindow();
            prefWindow.WindowStartupLocation=WindowStartupLocation.CenterOwner;

            prefWindow.ShowDialog();
        }
コード例 #4
0
 private void MenuPreferences_OnClick(object sender, RoutedEventArgs e)
 {
     var pw = new PreferencesWindow
         {
             Settings = Settings,
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
     pw.ShowDialog();
 }