Drawing the control bar for Metro-style WPF applications

So you want to build Zune like applications? Here is the recipe for adjusting the necessary stuff borrowed from an excellent blog post over at bonus bits. First, create a new WPF application project and run it. You will get something like this:

This window is unmovable and cannot be resized. If you want any of that, consider the blog post mentioned above.

The control box

Standard control box buttons are drawn using the Marlett font where maximize/minimize/restore/close glyphs are stored. You can view them using the Character Map program accessible via the Start menu. Add the following XAML code inside the main Grid element:

Disclaimer: The content on this site was not written at gunpoint and I was not forced to write it. It represents my own personal opinions and thoughts at the time of posting regardless of the intoxication level, and does not reflect those of my employer in any way whatsoever.