218
|
Chapter 11: Animations and Transformations
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
The
Rect3D value may be specified using abbreviated markup syntax or explicitly
declared as a
Rect3D element.
Attributes
KeySpline (required) (SplineRect3DKeyFrame only)
This
KeySpline describes how the key frame will be altered during animation.
KeyTime (required)
This attribute specifies when, relative to the animation, this key frame takes place:
A time period specified in hours:minutes:seconds.
Uniform: The Duration will be split evenly among all key frames.
Paced: The Duration will be split among key frames in a way that ensures the
speed of the animation remains relatively constant.
A percentage of the total duration.
Value (required)
This
Rect3D describes the destination value of the key frame.
RectKeyFrame
Hierarchy: DependencyObject Freezable
RectPointFrame is the base class for three types of Rect key frames: discrete, linear, and
spline. Each of the three subclasses of
RectKeyFrame represents a key frame with a
distinct interpolation technique, indicated by its name:
<LinearRectKeyFrame
KeyTime="0:0:10|Uniform|Paced|30%"
Value="1,1 10 10" />
<DiscreteRectKeyFrame
KeyTime="0:0:10|Uniform|Paced|30%"
Value="1,1 10 10" />
<SplineRectKeyFrame
KeyTime="0:0:10|Uniform|Paced|30%"
Value="1,1 10 10" >
<SplineRectKeyFrame.KeySpline>
<KeySpline ControlPoint1="5,5" ControlPoint2="10,10" />
</SplineRectKeyFrame.KeySpline>
</SplineRectKeyFrame>
All three RectKeyFrame subclasses determine when (KeyTime) the frame will reach the
designated value (
Value). KeyTime is specified in terms of hours:minutes:seconds. The
Value attribute of all RectKeyFrame subclasses is a Rect.

Get XAML in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.