public MainWindow() { HotKey _hotKey = new HotKey(Key.PrintScreen, KeyModifier.None, OnHotKeyHandler); this.ShowInTaskbar = false; InitializeComponent(); }
private void OnHotKeyHandler(HotKey hotKey) { WindowState = WindowState.Maximized; CaptureScreen(); this.Activate(); }