15.14. Effects and Transformations

WPF 4.0 and Silverlight 3.0 introduce some great new effects functionality. Let's take a look at these now.

15.14.1. Plane Projection

Plane projection is a new effect that allows you to rotate XAML elements around a 3D axis. Figure 15-27 shows the results of a plane projection transformation.

Figure 15.27. Plane projection transformation to an image

The effect was created with this XAML:

<Image Source="/pic1.jpg">
            <Image.Projection>
                <PlaneProjection RotationY="130"></PlaneProjection>
            </Image.Projection>
        </Image>

Note the transformation effect simulates rotating elements around the x, y, and z axes but does ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.