-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

MCTS: Microsoft Silverlight 4 Development (70-506) Certification Guide
By :

Silverlight, being an RIA platform allows you to manipulate your UI objects in far more ways than simple size or position. You can skew an element, rotate it across its x and y positions, scale it, and even emulate 3D effects by using the perspective transform.
Before we dive into manipulating objects, we need to have an object to manipulate.
Open Visual Studio 2010 and create a new Silverlight 4 project named Chapter3-ManipulateVisuals. Once the project is ready, add a Rectangle
object to MainPage.xaml
using the following code snippet:
<Rectangle Height="100" Width="100" Fill="Red"> </Rectangle>
This rectangle will be the base of all our visual manipulations. Build and run your application, and you should get the result, as shown in the following screenshot:
![]() |
The first transformation we are going to discuss is skew transformation. Skew takes a rectangular element and turns it into a parallelogram by skewing the values of the x or...
Change the font size
Change margin width
Change background colour