Perspective 3D comes to Silverlight! Below is a simple example on how to add Perspective 3d to your project. First, this is what the resulting application is going to look like, then we’ll dive into the code:
Download the code | See the example in action
XAML
There are two new features of note in this example. First, and foremost, the projection 3d tag to the Image:
Secondly, is element binding. The below XAML shows a Slider with the Value property bound to the PlaneProjections’s RotationY value. Notice the mode is TwoWay, meaning values updated by either the Slider or the RotationY value. In addition to the Slider binding, the Text property of the TextBlock is bound to the Slider Value.
and binding the value of the Slider to the value of the RotationY:
C#
There is no code required to run this. All the magic happens with the element binding.



March 18th, 2009 at 1:20 pm
nice, very easy, looks good
March 19th, 2009 at 1:50 am
[...] my last post about perspective 3d I showed a quick sample application on how to take an image, bind it to a slider and control the [...]
March 29th, 2009 at 10:03 pm
[...] the small world department, Jeff begins his article by pointing to Corey Schuman’s excellent summary of the fundamentals. Now, Corey and I met only recently, but he is amazingly talented and enthusiastic, and he [...]
May 6th, 2009 at 12:00 pm
[...] Simple Perspective 3D in Silverlight 3 | Corey Schuman - Corey Shuman at 85turns.com has a really basic perspective 3D sample for Silverlight 3… nothing fancy, but it has code [...]