title: ColorAnimation Gradient On WPF
body: <pre><code>   &lt;LinearGradientBrush x:Key="BrushPrincipalBorderBlue" EndPoint="1.3,1" StartPoint="-0.2,0"&gt;
          &lt;GradientStop Color="#FF030637" Offset="1"/&gt;
          &lt;GradientStop Color="#FF0E0F31" Offset="0.166"/&gt;
          &lt;GradientStop Color="#FF2E2F70" Offset="0.629"/&gt;
          &lt;GradientStop Color="#FF030637" Offset="0.63"/&gt;
      &lt;/LinearGradientBrush&gt;
  
      &lt;Storyboard x:Key="GoToBlue"&gt;
          &lt;ColorAnimation Storyboard.TargetName="border" Storyboard.TargetProperty="Background.GradientStops[3].Color" Duration="0:0:0.5"  
         To="{DynamicResource BrushPrincipalBorderBlue.GradientStops[3].Color}" /&gt;
      &lt;/Storyboard&gt;
  </code></pre>
  
  <p>How i can Set in the 'To' property to an GradientStop Color of my brush? because calling the way im calling it doesnt work.</p>