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.