title: xaml ResourceDictionary inside User Control Library
body: <p>how is it possible to define a ResourceDictionary inside a User Control Library and access them via Xaml-Code.</p>
  
  <p>I've created something like this:</p>
  
  <pre><code>&lt;ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                  xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
                  &gt;
  
  
      &lt;Style x:Key="NormalStyle" TargetType="{x:Type Control}"&gt;
          &lt;Setter Property="Foreground" Value="Black" /&gt;
          &lt;Setter Property="FontSize" Value="12" /&gt;
          &lt;Setter Property="FontFamily" Value="Arial" /&gt;
          &lt;Setter Property="FontStyle" Value="Normal" /&gt;
      &lt;/Style&gt;
      .
      .
      .
  &lt;/ResourceDictionary
  </code></pre>
  
  <p>And now I want to use this "NormalStyle" with a Control</p>
  
  <pre><code> Style="{StaticResource NormalStyle}"
  </code></pre>
  
  <p>But Visual Studio says "The resource "NormalStyle" could not be resolved."
  Did i miss or forget something?</p>
  
  <p>Thanks for helping me</p>