February 4th, 2010

Mixing it up! Using the InkPresenter with 3D Projection

All Silverlight Examples, Silverlight 3 tutorials, Silverlight Blend Tutorials, Silverlight C# Tutorials, Silverlight Effects, by Gavin Wignall.

Two great tools in Silverlight are the Projection properties and the InkPresenter, so what happens if you put the two together? Well, maybe something like below. Use the mouse to draw within the Silverlight area.

In this example I have used the InkPresenter to capture the mouse and produce vector paths. I also have a basic interface to change the colour and path size. I then use that captured data to duplicate the vector path upon 16 faces each rotating around a common point using the Projection properties.

The Projection properties in this example have been created inside Expression Blend using a storyboard activated by behaviors.

The InkPresenter control is this example has been created inside Expression Blend, but we need to do a bit of work in the code behind file to record the data and convert it into a visual path. You can read more about this process in this MSDN article.

Grab the Source

As always, you can grab the source files to this post here.

Back Top

Responses to “Mixing it up! Using the InkPresenter with 3D Projection”

  1. Very impressive. And with code. Nice!

  1. uberVU - social comments (,February 11, 2010)

    Social comments and analytics for this post…

    This post was mentioned on Twitter by silverlightbuzz: What happens when you mix the InkPresenter control and 3D Projection properties in Silverlight? http://tinyurl.com/ycn5r6v #silverlight #ria…

Leave a Reply

Back Top