February 2015
Intermediate to advanced
768 pages
26h 24m
English
If you want to transform an element multiple ways simultaneously, such as rotate and scale it, a few different options are available:
→ CompositeTransform
→ TransformGroup
→ MatrixTransform
The CompositeTransform class is the easiest way to combine transforms. It has all the properties of the previous four transforms, although some have slightly different names: Rotation, ScaleX, ScaleY, SkewX, SkewY, TranslateX, TranslateY, CenterX, and CenterY.
Figure 3.12 shows several transforms being applied to a single Button as follows:
<Button Background="Orange"> <Button.RenderTransform> <!-- The composite transform order is always scale, then skew, then rotate, then ...
Read now
Unlock full access