Applying transforms on elements
Transforms allow manipulating an entity's coordinates in various ways, the most common being translating (moving), scaling, and rotating. This ability provides a lot of flexibility in the way elements (and other objects) present themselves. Combined with animations and some creativity, transforms are even more powerful. In this recipe, we'll examine the ways to use transforms and discuss the available transform types.
Make sure Visual Studio is up and running.
How to do it...
We'll create some images and apply a rotation transform to some, showing the common properties that accept transforms:
- Create a new WPF application named
- Add an existing image to the project, such as