// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Interaction logic for AddPresetView.xaml // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Views { using System; using HandBrakeWPF.Helpers; using System.Windows; using HandBrakeWPF.Commands; using System.Windows.Input; /// /// Interaction logic for AddPresetView.xaml /// public partial class AddPresetView : Window { /// /// Initializes a new instance of the class. /// public AddPresetView() { InitializeComponent(); this.InputBindings.Add(new InputBinding(new CloseWindowCommand(this), new KeyGesture(Key.W, ModifierKeys.Control))); // Close Window } protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); WindowHelper.SetDarkMode(this); } } }