Recommended

Skip Navigation LinksHome / News / View News

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

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jun 10, 2010
(0 votes)
Vincent Leung has published a project demonstrating how to create a custom OOB window in Silverlight 4.

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.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 6 and 3 and type the answer here:

Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)