title: How to make a globally available style WITHOUT App.xaml
body: <p>I have a class library I am creating for an AutoCAD plugin that includes WPF control elements. I would like to add a theme to these elements, so I added the WPFThemes.DarkBlend package from Nuget.</p>
  
  <p>To property utilize the theme, you are supposed to add the style reference to your App.xaml file like so:</p>
  
  <pre><code>&lt;Application
  ...
  &lt;Application.Resources&gt;
      &lt;ResourceDictionary&gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="Themes\Styles.xaml” /&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p></p>
  
  <p>Now unfortunately, because this is only a class library, I do not have an App.xaml file in which to add this code. I am able to use my Window.Resources, but in doing so, I am afraid that the styles in the reference are not exposed to the Window element. Is this because the Window is not within the scope of its own resources? Below is an image that shows my current situation:</p>
  
  <p><a href="https://i.stack.imgur.com/cii7e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cii7e.png" alt="The style is not available to the Window control element"></a></p>
  
  <p>Thank you!</p>