title: How to attach FrameworkContentElement to MVVM Light EventToCommand
body: <p>I'm trying to convert an event to a command on a devexpress wpf grid context menu item which is derived from FrameworkContentElement instead of FrameworkElement. This causes a runtime error :</p>
  
  <p>{"Cannot attach type \"EventToCommand\" to type \"BarButtonItem\". Instances of type \"EventToCommand\" can only be attached to objects of type \"FrameworkElement\"."} </p>
  
  <p>Is there any workaround?</p>
  
  <pre><code>&lt;dxg:TableView.RowCellMenuCustomizations&gt;
      &lt;dxb:BarButtonItem Name="deleteRowItem" Content="Delete" &gt;
          &lt;i:Interaction.Triggers&gt;
              &lt;i:EventTrigger EventName="ItemClick"&gt;
                  &lt;cmd:EventToCommand Command="{Binding FooChangeCommand}"
                  PassEventArgsToCommand="True" /&gt;
              &lt;/i:EventTrigger&gt;
          &lt;/i:Interaction.Triggers&gt;
      &lt;/dxb:BarButtonItem&gt;
  
      &lt;!--ItemClick="deleteRowItem_ItemClick"/&gt;--&gt;
  &lt;/dxg:TableView.RowCellMenuCustomizations&gt;
  </code></pre>
  
  <p>Unfortunately devexpress have run into problems changing the base class to FrameworkElement having intended to make that change...</p>