private void PreferencesWindow_Click(object sender, RoutedEventArgs e)
        {
            var prefWindow = new PreferencesWindow();

            prefWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            prefWindow.ShowDialog();
        }
        private void MenuPreferences_OnClick(object sender, RoutedEventArgs e)
        {
            var pw = new PreferencesWindow
            {
                Settings = Settings,
                Owner    = this,
                WindowStartupLocation = WindowStartupLocation.CenterOwner
            };

            pw.ShowDialog();
        }
        private void PreferencesWindow_Click(object sender, RoutedEventArgs e)
        {
            var prefWindow = new PreferencesWindow();
            prefWindow.WindowStartupLocation=WindowStartupLocation.CenterOwner;

            prefWindow.ShowDialog();
        }
 private void MenuPreferences_OnClick(object sender, RoutedEventArgs e)
 {
     var pw = new PreferencesWindow
         {
             Settings = Settings,
             Owner = this,
             WindowStartupLocation = WindowStartupLocation.CenterOwner
         };
     pw.ShowDialog();
 }