title: Use DataContext as CommandParameter in WPF
body: <p>I want to pass the current DataContext (which is an instance of a ViewModel) as a CommandParameter on a WPF Button.  What would be the syntax I should use?</p>
  
  <pre><code>&lt;Button 
    x:Name="btnMain"
    Command="infra:ApplicationCommands.MyCommand"
    CommandParameter="{Binding ???}"
   /&gt;
  </code></pre>