February 2015
Intermediate to advanced
768 pages
26h 24m
English
A discrete keyframe indicates that no interpolation should be done from the previous keyframe. Updating DoubleAnimationUsingKeyFrames from Listing 16.1 as follows produces the motion illustrated in Figure 16.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 16.11 Discrete keyframes makes the ...
Read now
Unlock full access