I need to create input binding for Window.
public class MainWindow : Window { public MainWindow() { SomeCommand = ??? () => OnAction();
It might be too late but here is the simplest and shortest solution.
private void Window_KeyDown(object sender, KeyEventArgs e) { if (Keyboard.Modifiers == ModifierKeys.Control && e.Key == Key.S) { // Call your method here } }