开发者

Not understanding Storyboard.TargetProperty property

开发者 https://www.devze.com 2023-01-16 21:21 出处:网络
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 :-

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消