// Ctrl + GをHelloCommandへ
KeyBinding keyBinding = new KeyBinding(HelloCommand,
new KeyGesture(Key.G, ModifierKeys.Control));
// Ctrl + 左クリックをHelloCommandへ
MouseBinding mouseBinding = new MouseBinding(HelloCommand,
new MouseGesture(MouseAction.LeftClick, ModifierKeys.Control));
// バインディングをWindowのInputBindingsへ登録
this.InputBindings.Add(keyBinding);
this.InputBindings.Add(mouseBinding);
<Window.InputBindings>
<KeyBinding Command="{x:Static WpfCommand:Window1.HelloCommand}" Key="G" Modifiers="Control" />
<MouseBinding Command="{x:Static WpfCommand:Window1.HelloCommand}">
<MouseBinding.Gesture>
<MouseGesture Modifiers="Control" MouseAction="LeftClick" />
</MouseBinding.Gesture>
</MouseBinding>
</Window.InputBindings>