title: Passing Enum Value as a Command Parameter
body: <p>Part of this question has been answered on <a href="https://stackoverflow.com/questions/359699/passing-an-enum-value-as-command-parameter-from-xaml">how to bind to an enum as a command parameter</a>, but I need to go one step further.</p>
  
  <p>I have a data template that links to a menu and each menu option initiates a command with a different value of the enum.  How do I do this?  Do I need to resort to just passing a string?</p>
  
  <pre><code>public enum TestEnum
  {
    First,
    Second,
    Third
  }
  </code></pre>
  
  
  
  <pre><code>&lt;DataTemplate&gt;
      &lt;MenuItem Header="{Binding Path=.}" Command="{Binding ACommand}" 
          CommandParameter="{Binding Path=???}" /&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>I want the first MenuItem to bind to Enum.First, the second one to Enum.Second, and so on. I want this written, so that I only have to write the data template above once within a Menu instead of a menu item for each enum.value.  HTH.</p>
  
  <p>I need the command parameter to be different for each menu item.  So I will have 3 menu items of first, second, and third.</p>