title: DynamicResource Cannot be resolved
body: <p>I have been trying to learn about resources and styles, I want to create a chromeless window.</p>
  
  <p>I have an example that acheives what I want via the following simple extracts of xaml.</p>
  
  <p>I have a Resource set in Themes/Generic.xaml</p>
  
  <pre><code>&lt;Style x:Key="BorderlessWindowStyle" TargetType="{x:Type Window}"&gt;
      &lt;Setter Property="AllowsTransparency" Value="true" /&gt;
      &lt;Setter Property="WindowStyle" Value="None" /&gt;
      &lt;Setter Property="ResizeMode" Value="CanResizeWithGrip" /&gt;
      &lt;Setter Property="Background" Value="Transparent" /&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>I have a main window:</p>
  
  <pre><code>&lt;Window x:Class="Project1.Shell"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:local="clr-namespace:Project1"
      x:Name="Window"
      Title="Shell" Height="576" Width="1024" Style="{DynamicResource BorderlessWindowStyle}"&gt;
  &lt;Grid&gt;&lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>But the style is not being applied and VS designer states it cannot resolve the resource.</p>
  
  <p>The example I have been looking at does things this way and I cannot discover the difference between what I have seen done and what I am trying to do.</p>
  
  <p>I thought that Genric.xaml was a 'special' resource dictionary that should be discoverable by my Window control - and I am guessing this assumption is my error.</p>
  
  <p>What do I need to do to make this work? (Now I understand I can set these properties in the Window xaml directly, and I have done so and get the effect I want. BUT I really want to undersatnd using the Generic.xaml resource dictionary way as I have presented here)</p>
  
  <p>best regards</p>
  
  <p>John.</p>