<Window x:Class="Sample7.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Sample7"
        mc:Ignorable="d"
      Title="Sample7" Height="150" Width="200">
    <Window.CommandBindings>
        <CommandBinding Command="Help"
                    CanExecute="Help_CanExecute"
                    Executed="Help_Executed" />
        <CommandBinding Command="Open" 
                    CanExecute="Open_CanExecute"
                    Executed="Open_Executed" />
    </Window.CommandBindings>
    <Window.InputBindings>
        <KeyBinding Key="F10" Modifiers="Alt" Command="Help" />
        <MouseBinding Gesture="Alt+WheelClick" Command="Help" />
        <KeyBinding Key="F11" Modifiers="Control" Command="Open" />
        <MouseBinding Gesture="Alt+RightClick" Command="Open" />
    </Window.InputBindings>
    <StackPanel>
        <Button Height="45" Content="Help" Command="Help" />
        <Button Height="45" Content="Open" Command="Open" />
    </StackPanel>
</Window>
