title: Issue with applying style on WPF UserControl
body: <p>I have a user-control and I want to use it in some other project. There is no problem when I set some value to its properties directly:</p>
  
  <pre><code>&lt;local:MyUserControl prop1="val1" prop2="val2"&gt;
      ...
  &lt;/local:MyUserControl&gt;
  </code></pre>
  
  <p>But I can't apply a style to it. I tried:</p>
  
  <pre><code>&lt;Window ...&gt;
      &lt;Window.Resources&gt;
          &lt;Style x:Key="MyUserControlStyle" TargetType="{x:Type local:MyUserControl}"&gt;
              &lt;Setter Property="prop1" Value="val1"/&gt;
              &lt;Setter Property="prop2" Value="val2"/&gt;
          &lt;/Style&gt;
      &lt;/Window.Resources&gt;
  
      &lt;Grid&gt;
          &lt;local:MyUserControl Style="{StaticResource ResourceKey=MyUserControlStyle}"&gt;
              ...
          &lt;/local:MyUserControl&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Where did I wrong? -Thanks</p>