title: Binding EasingColorKeyframe Value
body: <p>I made a simple animation using Expression Blend. the problem is that I can't figure how to bind the values of each Key Frame, blend won't let me do that, and after changing the XAML it seems as if the binding dose not work as I expect it should.</p>
  
  <p>Here is the XAML:</p>
  
  <pre><code>  &lt;ColorAnimationUsingKeyFrames  RepeatBehavior="Forever" Storyboard.TargetProperty="(TextElement.Foreground).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="mainToggleButton"&gt;
              &lt;EasingColorKeyFrame KeyTime="0:0:0.2" Value="{Binding RelativeSource={RelativeSource Self}, Path=LowColor}"/&gt;
              &lt;EasingColorKeyFrame KeyTime="0:0:0.4" Value="{Binding RelativeSource={RelativeSource Self}, Path=HighColor}"/&gt;
              &lt;EasingColorKeyFrame KeyTime="0:0:0.8" Value="{Binding RelativeSource={RelativeSource Self}, Path=HighColor}"/&gt;
              &lt;EasingColorKeyFrame KeyTime="0:0:1"   Value="{Binding RelativeSource={RelativeSource Self}, Path=LowColor}"/&gt;
              &lt;EasingColorKeyFrame KeyTime="0:0:1.4" Value="{Binding RelativeSource={RelativeSource Self}, Path=HighColor}"/&gt;
              &lt;/ColorAnimationUsingKeyFrames&gt;
  </code></pre>
  
  <p>Here are the DependencyProperties in the code behind</p>
  
  <pre><code>        [Category("Flash")]
          public Brush HighColor
          {
              get { return (Brush)GetValue(HighColorProperty); }
              set { SetValue(HighColorProperty, value); }
          }
  
          // Using a DependencyProperty as the backing store for HighColor.  This enables animation, styling, binding, etc...
          public static readonly DependencyProperty HighColorProperty =
              DependencyProperty.Register("HighColor", typeof(Brush), typeof(AttentionControl), new UIPropertyMetadata(Brushes.LightGreen));
  
  
          [Category("Flash")]
          public Brush LowColor
          {
              get { return (Brush)GetValue(LowColorProperty); }
              set { SetValue(LowColorProperty, value); }
          }
  
          // Using a DependencyProperty as the backing store for LowColor.  This enables animation, styling, binding, etc...
          public static readonly DependencyProperty LowColorProperty =
              DependencyProperty.Register("LowColor", typeof(Brush), typeof(AttentionControl), new UIPropertyMetadata(Brushes.DarkGreen));
  </code></pre>
  
  <p>The animation will work, but the binding dose not work, it seems as if the color dose not change trough the animation. </p>
  
  <p>Thanks.</p>