-
Book Overview & Buying
-
Table Of Contents
Instant Silverlight 5 Animation
By :
Silverlight provides a powerful set of transforms to apply to the visual object. The following is a full set of 2D transforms:
TranslateTransform: This shifts an object in a 2D plane.
ScaleTransform: This scales (or resizes) the object by the ScaleX factor along the X-axis and the ScaleY factor along the Y-axis.
SkewTransform: Skewing along the X-axis turns every vector orthogonal to the X-axis by the same angle defined by AngleX, and expands its length so that its Y coordinate stays the same. The AngleY parameter of the transform is in charge of skewing along the Y-axis.
RotateTransform: This rotates an object by the Angle parameter.
MatrixTransform: This is a generic transform that can represent any linear transformation and translation within a 2D plane.
We previously used RotateTransform to rotate the rectangle.
There is also the PlaneProjection transform imitating the moving of an object in a 3D space. We will describe this transform in detail later in the book.
Change the font size
Change margin width
Change background colour