title: WPF custom derived control style
body: <p>I have a custom control derived from Button:</p>
  
  <pre><code>    class MyControl : Button{}
  </code></pre>
  
  <p>And suppose, this class is empty (has no members).</p>
  
  <p>In the application's main window resources I use ResourceDictionary that contains styles for most <a href="http://en.wikipedia.org/wiki/Windows_Presentation_Foundation" rel="noreferrer">WPF</a> controls (so called theme):</p>
  
  <pre><code>    &lt;ResourceDictionary Source="BureauBlue.xaml" /&gt;
  </code></pre>
  
  <p>So, all controls on the window look like it is defined in that theme file. But the styles are not affected on MyControl controls. How can I do MyControl to look same as a Button controls?</p>
  
  <p>Update: The style for Button in BureauBlue.xaml has no key and is defined in the following way: </p>
  
  <pre><code>    &lt;Style TargetType="{x:Type Button}" BasedOn="{x:Null}"&gt; ...&lt;/Style&gt;
  </code></pre>