title: WPF UserControls - setting the .Command property on button inside UserControl
body: <p>I've got a UserControl that contains a button and some other controls:</p>
  
  <pre><code>&lt;UserControl&gt;
    &lt;StackPanel&gt;
       &lt;Button x:Name="button" /&gt;
       ...
    &lt;/StackPanel&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>When I create a new instance of that control, I want to get at the Button's Command property:</p>
  
  <pre><code>&lt;my:GreatUserControl TheButton.Command="{Binding SomeCommandHere}"&gt;
  &lt;/my:GreatUserControl&gt;
  </code></pre>
  
  <p>Of course, the "TheButton.Command" thing doesn't work. </p>
  
  <p>So my question is: Using XAML, <strong>how can I set the .Command property of the button inside my user control?</strong> </p>