MahApps.Metro 0.3 Release
7 November, 2011
Exciting times for MahApps.Metro - over 100 downloads via Nuget, more sightings in the wild, a new contributer and a move to GitHub. And finally, version 0.3 has now been released and pushed to NuGet.
What's new in 0.3?
Combined MahApps.Metro.Controls into MahApps.Metro for a single library
This is considered a breaking change but thankfully it isn't horrible to fix and it's the only breaking change. Previously MahApps.Metro.Controls were in a separate assembly, but they've been combined into a single assembly. The namespaces are the same, so it will just be project references that need to change.
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro.Controls"
will become
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
New controls
- Panorama
- MetroImage
- Tile
Added Theme Manager
Previously you had to roll your own theme/accent switching code, but we've now included in a static ThemeManager class to handle that.
Using one of the built-in accents
ThemeManager.ChangeTheme(this, ThemeManager.DefaultAccents.First(a => a.Name == "Red"), Theme.Light);
The built in accents are Red, Blue, Green and Purple.
Using your own accent
var myAccent = new Accent("MyAccent", new Uri("pack://application:,,,/My.App;component/MyAccent.xaml"));
ThemeManager.ChangeTheme(this, myAccent, Theme.Dark);
This does not persist theme changes - you'll need to handle that yourself.
And various bug fixes and missing styles
- Additional controls styled:
- Slider
- GridView
- Fixed button hover and pressed state
- Fixed TabItem focus issues
- Fixed Dark -> Light theme transition issues
Show Me The Demo!
You can grab the demo app from source or now you can install it via ClickOnce, or watch the short video below demoing the new controls

