December 2014
Intermediate to advanced
512 pages
17h 4m
English
A discrete keyframe indicates that no interpolation should be done from the previous keyframe. Updating DoubleAnimationUsingKeyFrames from Listing 19.1 as follows produces the motion illustrated in Figure 19.11:
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" Duration="0:0:3"> <Discrete DoubleKeyFrame Value="0" KeyTime="0:0:0"/> <Discrete DoubleKeyFrame Value="200" KeyTime="0:0:1"/> <Discrete DoubleKeyFrame Value="0" KeyTime="0:0:2"/> <Discrete DoubleKeyFrame Value="200" KeyTime="0:0:3"/></DoubleAnimationUsingKeyFrames>
FIGURE 19.11 Discrete keyframes make the circle’s ...
Read now
Unlock full access