title: WPF (XAML): Shortcut key Event
body: <p>I have a problem with my XAML. I have a Menu Component, and I would like that it would work in Shortcut key too. I have XAML code, which doesn't work:</p>
  
  <pre><code>  &lt;MenuItem Header="_New" Name="New" Click="New_Click" InputGestureText="Ctrl+N"&gt;
   &lt;MenuItem.InputBindings&gt;
   &lt;KeyBinding Key="N" Modifiers="control"/&gt;
   &lt;/MenuItem.InputBindings&gt;
   &lt;/MenuItem&gt;
  </code></pre>
  
  <p>What is the solution? New_Click event works, but Shortcut key doesn't...</p>