Binding animation's property within VisualState within ControlTemplate

Sep 19, 2009 at 4:14 PM

Hi there,

I have some problems binding within VisualState, imagine something like the code below. So, is there a way to bind the animation's Value property to anything at all?

<ControlTemplate>
...

<Storyboard>
  <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:01.10000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
    <SplineColorKeyFrame KeyTime="00:00:00" Value="{Binding ElementName=Tubo, Path=Background}"/>

...
<Label x:Name="Tubo" Background="Red" Visibility="Hidden" />

</ControlTemplate>