Continue from previous part here.
In above code, I strike <TransformGroup> root
because inside this I'm only using single transform element that is
<ScaleTransform> but in case if you have multiple transform, you have to
use <TransformGroup>. Review my previous post titled "TransformGroup in
XAML Silverlight" for more.
<ScaleTransform> has name 'Action1' and it has
only one scale property that is 'ScaleX' so, similarly we have used 'ScaleX'
only in <DoubleAnimation>.
Let's move to <DoubleAnimation> section now. In
this section please note we have 'Storyboard.TargetName' is 'Action1' and
'Storyboard.TargetProperty' is 'ScaleX' these properties can be assumed as
called part of <ScaleTransform> attribute.
If you run above code, you will find 'TextBlock' text
is being doubled on X axis and this animation repeats forever because of
properties 'RepeatBehaviour' and 'AutoReverse'.
In next part we will combine ScaleX and ScaleY. Be
tuned.
HAVE A HAPPY CODING!!