Rect3DKeyFrame


Rect3DKeyFrameHierarchy: DependencyObject Freezable

Rect3DPointFrame is the base class for three types of Rect3D key frames: discrete, linear, and spline. Each of the three subclasses of Rect3DKeyFrame represents a key frame with a distinct interpolation technique, indicated by its name:

     <LinearRect3DKeyFrame             KeyTime="0:0:10|Uniform|Paced|30%"             Value="1,1,1 10 10 10" />     <DiscreteRect3DKeyFrame             KeyTime="0:0:10|Uniform|Paced|30%"             Value="1,1,1 10 10 10" />             <SplineRect3DKeyFrame             KeyTime="0:0:10|Uniform|Paced|30%"             Value="1,1,1 10 10 10" >             <SplineRect3DKeyFrame.KeySpline>                 <KeySpline ControlPoint1="5,5" ControlPoint2="10,10" />             </SplineRect3DKeyFrame.KeySpline>     </SplineRect3DKeyFrame> 

All three Rect3DKeyFrame 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 Rect3DKeyFrame subclasses is a Rect3D.


DiscreteRect3DKeyFrame

Skips from one value to the desired value without interpolation. Thus, the Value will not be reached until KeyTime (relative to the beginning of the animation).


LinearRect3DKeyFrame

Utilizes linear interpolation to reach the desired value. Linear interpolation progresses the animation at a steady rate for its duration.


SplineRect3DKeyFrame

Uses a concept similar to Bezier curves to interpolate values until Value has been reached. This subclass requires an additional attribute, KeySpline, which is used to interpolate the value in much the same way as control points are used to interpolate a line when declaring a Bezier curve.

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.




XAML in a Nutshell
XAML in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596526733
EAN: 2147483647
Year: 2007
Pages: 217

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net