December 2014
Intermediate to advanced
512 pages
17h 4m
English
As mentioned when Storyboards were introduced, they can contain one or more animations. Here’s an update to the Button-scaling XAML that scales it in both directions simultaneously (and omits the From values to avoid the “jump” effect):
<Page ...> <Page.Resources> <!-- Two Storyboards, one for growing and one for shrinking --> <Storyboard x:Name="growStoryboard" TargetName="t"> <DoubleAnimation To="1.4" Storyboard.TargetProperty="ScaleX" /> <DoubleAnimation To="1.4" Storyboard.TargetProperty="ScaleY" /> </Storyboard> <Storyboard x:Name="shrinkStoryboard" TargetName="t"> <DoubleAnimation To="1" Storyboard.TargetProperty="ScaleX" /> <DoubleAnimation ...
Read now
Unlock full access