title: How to place XAML-only resources in a DLL (Reference) file to be used by WPF applications?
body: <p>My WPF applications are reaching the level of complexity at which it becomes desirable to place some of the code and other resources inside a Reference file (*.dll).</p>
  
  <p>I am sure I can figure out how to do this, by following the myriad applications out there.</p>
  
  <p>In this particular case, however, the files are two, XAML:</p>
  
  <p><img src="https://i.stack.imgur.com/tcRYJ.png" alt="enter image description here"></p>
  
  <p>Can somebody please provide an example on how to <strong>expose</strong> or <strong>publish</strong> the XAML resources? Are *.cs files required?</p>
  
  <p><img src="https://i.stack.imgur.com/FduUs.png" alt="enter image description here"></p>
  
  <p>TIA</p>
  
  <p>The XAML file outlined by @HighCore should look like this:</p>
  
  <pre><code>&lt;Application x:Class="Application"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" &gt;
  
      &lt;Application.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;ResourceDictionary.MergedDictionaries&gt;
                  &lt;ResourceDictionary Source="pack://application:,,,/ReferencedAssembly;component/Subfolder/ResourceFile.xaml"/&gt;
              &lt;/ResourceDictionary.MergedDictionaries&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/Application.Resources&gt;
  &lt;/Application&gt;
  </code></pre>