Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not understanding Storyboard.TargetProperty property

What exactly is meant by Storyboard.TargetProperty. 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 :)

like image 968
TCM Avatar asked Sep 18 '10 10:09

TCM


1 Answers

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.

like image 111
Blounty Avatar answered Jan 02 '23 13:01

Blounty