title: Style inheritance based on different XAML
body: <p>How to specify BasedOn tag in a style to a style defined in some other file.</p>
  
  <p>Example,</p>
  
  <p>Dictionary1.xaml defines </p>
  
  <pre><code>   &lt;Style x:Key="basicStyle" TargetType="TextBlock" &gt;
         &lt;Setter Property="FontSize" Value="24"&gt;&lt;/Setter&gt;
         &lt;Setter Property="Foreground" Value="DarkGray"&gt;&lt;/Setter&gt;
         &lt;Setter Property="FontWeight" Value="Bold"&gt;&lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>In Dictionary2.xaml i need something like</p>
  
  <pre><code>    &lt;Style x:Key="headerStyle" TargetType="TextBlock" &gt;
         &lt;Setter Property="FontSize" Value="46"&gt;&lt;/Setter&gt;
         &lt;Setter Property="Foreground" Value="DarkGray"&gt;&lt;/Setter&gt;
         &lt;Setter Property="FontWeight" Value="Bold"&gt;&lt;/Setter&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>How to achieve this?</p>