Thursday, November 18, 2010

How to: create a nonrectangular ChildWindow - part 1

This article describes step by step how to create a non rectangular child window. A ring-shaped child window is created.
Step 1 - preparations
In expression blend 4 a new Silverlight 4 project is created. A button is added to the surface of MainPage.xaml. This button is later used to call the ChildWindow.
Then--add new item… is the Silverlight project by right-clicking on the project-> ChildWindow added a ChildWindow. This ChildWindow is named "RingChildWindow.xaml". Clicking OK adds the new ChildWindow to the project. The ChildWindow receives a size from 400px x 400px.
Step 2 - styling the template
In expression blend 4 RingChildWindow for editing is now displayed. The ChildWindow is selected with the left mouse button in the object tree "Objects and timeline" tab.


Read more: SilverLaw