title: Custom command not working
body: <p>In my XAML I have this:</p>
  
  <pre><code>&lt;UserControl.CommandBindings&gt;
      &lt;CommandBinding Command="Help"
     CanExecute="HelpCanExecute"
     Executed="HelpExecuted" /&gt;
  &lt;/UserControl.CommandBindings&gt;
  
  &lt;MenuItem Header="Help" Command="Help" /&gt;
  </code></pre>
  
  <p>This works fine. So when I click the context menu, HelpExecuted() gets called.</p>
  
  <p>Now I want to do the same again except use a custom command instead of the Help command. So what I do is:</p>
  
  <pre><code>public RoutedCommand MyCustomCommand = new RoutedCommand();
  </code></pre>
  
  <p>and change my XAML to:</p>
  
  <pre><code>&lt;UserControl.CommandBindings&gt;
      &lt;CommandBinding Command="MyCustomCommand"
     CanExecute="HelpCanExecute"
     Executed="HelpExecuted" /&gt;
  &lt;/UserControl.CommandBindings&gt;
  
  &lt;MenuItem Header="Help" Command="MyCustomCommand" /&gt;
  </code></pre>
  
  <p>But i get the error: Cannot convert string 'MyCustomCommand' in attribute 'Command' to object of type 'System.Windows.Input.ICommand'. CommandConverter cannot convert from System.String.</p>
  
  <p>What am I missing here? And please note that I want to do it all in XAML, i.e. don't want to use CommandBindings.Add(new CommandBinding(MyCustomCommand....</p>