Fork me on GitHub

Advanced MetroWindow Guide

Roll your own Window [obsolete]

The roll your own approach is very relevant, depending on what style of app you’re going for. A good example is code52’s MarkPad, where we needed the flexibility of rolling our own window while still using MahApps.Metro as an underlying visual framework.
The key elements used were the WindowCommands (discussed here), and BorderlessWindowBehavior.

BorderlessWindowBehavior [obsolete]

Add some namespace references to the opening Window tag:


Then somewhere within the Window, add


And you’re done! BorderlessWindowBehavior has a few options, such as ResizeWithGrip and AutoSizeToContent:

	<Behaviours:BorderlessWindowBehavior ResizeWithGrip="False" />