public MainWindow() { InitializeComponent(); var register = new HotKeyRegisterer(this, Surprise, HotKeyMods.Control | HotKeyMods.Alt, ConsoleKey.B); }
//create new hot key for hidding and showing the window private void Window_SourceInitialized(object sender, EventArgs e) { HotKeyRegisterer hotKey = new HotKeyRegisterer(this, OnHotKeyDown, HotKeyMods.Control, ConsoleKey.NumPad0); }