Not understanding Storyboard.TargetProperty property
What exactly is meant by Storyboard.Ta开发者_运维百科rgetProperty
. I know that it's the property of the object which we want to animate. But why are they so complex like :-
Storyboard.TargetProperty='(Shape.Fill).(SolidColorBrush.Color)'
and why not :-
Storyboard.TargetProperty='Fill'
2nd example :-
<DoubleAnimationUsingKeyFrames
Storyboard.TargetProperty="(UIElement.RenderTransform).
(TransformGroup.Children)[3].(ScaleTransform.ScaleX)"
Storyboard.TargetName="rectangle">
<EasingDoubleKeyFrame KeyTime="0:0:1"
Value="1.88"/>
</DoubleAnimationUsingKeyFrames>
Do i need to remember this strange and complex targetproperty? Any help or any tips and tricks to remember this is appreciated.
Thanks in advance :)
Best advice, do this stuff in Blend, My thought is that these animations were never meant to be coded by hand, MS always wanted a designer using Blend to create the UI and Animations while developers wrote the code to push data to it.
精彩评论