O'Reilly logo

Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Transforms

A great deal of drawing tasks can be made simpler with the use of a transform—an object that alters the way a shape or element is drawn by secretly shifting the coordinate system it uses. In WPF, transforms are represented by classes that derive from the abstract System.Windows.Media.Transform class, as listed in Table 13-3.

Table Transform Classes
NameDescriptionImportant Properties
TranslateTransformDisplaces your coordinate system by some amount. This transform is useful if you want to draw the same shape in different places.X, Y
RotateTransformRotates your coordinate system. The shapes you draw normally are turned around a center point you choose.Angle, CenterX, CenterY
ScaleTransformScales your coordinate system up or down, so that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required