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