title: how to use styles defined in ResourceDictionary
body: <p>I have several common styles and I want to share them in several pages of my Windows 8.1 application.</p>
  
  <p>I know that I can achieve with <a href="http://msdn.microsoft.com/en-us/library/aa350178.aspx" rel="noreferrer">merge dictionaries option</a>, but I have no idea how to use styles defined in dictionary.</p>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;Page.Resources&gt;
  &lt;ResourceDictionary x:Key="lol"&gt;
      &lt;ResourceDictionary.MergedDictionaries&gt;
          &lt;ResourceDictionary Source="Themes/Generic.xaml" /&gt;
          &lt;ResourceDictionary&gt;
              &lt;Style x:Key="TextViewAllStyle" TargetType="TextBlock"&gt;
              &lt;/Style&gt;
          &lt;/ResourceDictionary&gt;
      &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;Style x:Key="TextViewAllStyle2" TargetType="TextBlock"&gt;
      &lt;/Style&gt;
  &lt;/ResourceDictionary&gt;
  &lt;Style x:Key="TextViewAllStyle3" TargetType="TextBlock"&gt;
  &lt;/Style&gt;
  &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>But my Visual Studio sees only the third one...</p>
  
  <pre><code>&lt;TextBlock Style="{StaticResource ResourceKey=TextViewAllStyle3}"/&gt;
  </code></pre>