I want to translate an object on its Y-axis over time in Silverlight, but its height is not constant, so I'd like to be able to change the second line of the following from:
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ExpandSite" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-50"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
to something more like:
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-100%"/>
or possibly:
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="-{ExpandSite Height}"/>
That doesn't compile, however. I'd appreciate any help. I'm using Expression Blend 3, for reference.
EDIT
I basically want to achieve an effect similar to what's demonstrated here, but this code takes for granted that all the objects being translated are 100x100.