title: WPF Style for rectangle - fill not working
body: <p>I have a WPF application. I have a rectangle that I want to fill with a radial brush that I have created. However when I go to set the value of the fill property with the name of my radial brush it tell me token is not valid?</p>
  
  <pre><code>&lt;RadialGradientBrush x:Key="brushRadSecurity" RadiusY="0.825" RadiusX="0.669"&gt;
          &lt;RadialGradientBrush.RelativeTransform&gt;
              &lt;TransformGroup&gt;
                  &lt;ScaleTransform CenterY="0.5" CenterX="0.5" ScaleY="1.248" ScaleX="1.276"/&gt;
                  &lt;SkewTransform CenterY="0.5" CenterX="0.5"/&gt;
                  &lt;RotateTransform CenterY="0.5" CenterX="0.5"/&gt;
                  &lt;TranslateTransform Y="0.317" X="-0.007"/&gt;
              &lt;/TransformGroup&gt;
          &lt;/RadialGradientBrush.RelativeTransform&gt;
          &lt;GradientStop Color="#940FDCDC" Offset="0"/&gt;
          &lt;GradientStop Offset="1"/&gt;
          &lt;GradientStop Color="#94022FF3" Offset="0.974"/&gt;
          &lt;GradientStop Color="#940092C9" Offset="0.526"/&gt;
          &lt;GradientStop Color="#940FDCDC" Offset="0.25"/&gt;
          &lt;GradientStop Color="#940052C9" Offset="0.703"/&gt;
      &lt;/RadialGradientBrush&gt;
  
  
  &lt;Style x:Key="recSecurity" TargetType="Rectangle"&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Stretch"/&gt;
          &lt;Setter Property="VerticalAlignment" Value="Stretch"/&gt;
          &lt;Setter Property="Opacity" Value="0"/&gt;
          &lt;Setter Property="RadiusX" Value="10"/&gt;
          &lt;Setter Property="RadiusY" Value="10"/&gt;
          &lt;Setter Property="StrokeThickness" Value="0"/&gt;
          &lt;Setter Property="Fill" Value="brushRadSecurity"/&gt;
      &lt;/Style&gt;
  </code></pre>