A reusable Custom Out-of-Browser Window in Silverlight 4


 

What this means is that you can turn this:

normal out-of-browser window

into this:

custom out-of-browser window

The MainWindow control derives from UserControl and is meant to replace the default layout root. It provides the following features:

  • A title bar that users can drag to move the window. The title bar consumes out-of-browser configuration data for the icon and title text.
  • A default border that users can drag to resize the window. Hovering over the border changes the cursor as you would expect. A BorderBrush dependency property lets you customize the border background from the application layout root.
  • Isolated Storage support to store the window size, position, and state on application shutdown and retrieve the values on the next startup.

Download the project here.

Via Creating a Custom Out-of-Browser Window in Silverlight 4 – Silverlight SDK – Site Home – MSDN Blogs

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s