title: winrt xaml merged resources
body: <p>I need to separate application styles to several xaml files.
  But I also need to define some shared values like </p>
  
  <pre><code>&lt;x:Double x:Key="SharedValue"&gt;100&lt;/x:Double&gt;
  </code></pre>
  
  <p>in single file for use this value in styles defined in other files.
  For instance:</p>
  
  <pre><code>&lt;Style x:Name="SomeStyle" TargetType="TextBox"&gt;
       &lt;Setter Property="Width" Value="{StaticResource SharedValue}"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>and in another resource dictionary file: </p>
  
  <pre><code>&lt;Style x:Name="AnotherStyle" TargetType="Button"&gt;
       &lt;Setter Property="Height" Value="{StaticResource SharedValue}"/&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>But when I try to define merged resource dictionary in App.xaml file</p>
  
  <pre><code>&lt;Application.Resources&gt;
      &lt;ResourceDictionary &gt;
          &lt;ResourceDictionary.MergedDictionaries&gt;
              &lt;ResourceDictionary Source="DefinedValues.xaml"/&gt;
              &lt;ResourceDictionary Source="Styles1.xaml"/&gt;
              &lt;ResourceDictionary Source="Styles2.xaml"/&gt;
          &lt;/ResourceDictionary.MergedDictionaries&gt;
      &lt;/ResourceDictionary&gt;
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p>I get this runtime exception:"Message = "Cannot find a Resource with the Name/Key SharedValue"</p>
  
  <p>Can you tell me is it posible to do this and what I'm doing wrong?
  Thanks.</p>