Child Window Style in Silverlight 3


Introduction

In this article we will see how we can change ChildWindow Style. ChildWindow comes with Silverlight 3 and we have an Error Window in Silverlight Navigation application.

Creating Silverlight Application

1.gif

This is a simple Silverlight application so we will create a ChildWindow first.

2.gif

Now open the solution in Blend 3.

Right Click on Child Window and select Edit Template.

3.gif

You will find the following objects for the Child Window.

4.gif

I have just changed the color of the Border Chrome to Blue and the Foreground of Content Presenter to White.

5.gif

Now go back to Child Window and adjust your custom width and height of Child Window.

6.gif

Now run your application to see the custom styled Child Window.

7.gif

That's it. Hope you like this style.


Similar Articles