MaterialDesignInXAML /MaterialDesignInXamlToolkit
Google's Material Design in XAML & WPF, for C# & VB.Net.
★ 16,301⑂ 3,485👁 499⑃ 1,844● 2,035▤ 47
-1
Daily
+8
Weekly
+22
Monthly
16,301
stars
3,485
forks
499
watchers
1,844
prs
2,035
issues
47
releases
README
Material Design In XAML Toolkit !Logo of Material Design in XAML


![Chat][discord-server-url]
Comprehensive and easy to use Material Design theme and control library for the Windows desktop (WPF).
- Material Design styles for all major WPF Framework controls
- Additional controls to support the theme, including Multi Action Button, Cards, Dialogs, Clock
- Easy configuration of palette (at design _and_ runtime), according to Google's guidelines
- Full Material Design Icons icon pack
- Easy transition effects
- Compatible with Dragablz, MahApps
- Demo applications included in the source project
See screenshots
Table of contents
- Getting started
- Building the source
- Screenshots
- More examples
- FAQ
- Contributing
- Mentions
- Backers
- Sponsors
---
Getting started
[!NOTE]
See the full starting guide for more in-depth information.
This quick guide assumes you have already created a WPF project and are using Microsoft Visual Studio 2022.
Install the toolkit through the visual NuGet package manager in Visual Studio or use the following command:
Install-Package MaterialDesignThemes
Alter your App.xaml
xml
If you want to target Material Design 3, alter the ResourceDictionary line in the snippet above to use MaterialDesign3.Defaults.xaml.
Alter your MainWindow.xaml
xml
XML Namespaces
The toolkit exposes two XML namespaces for use in XAML:
| Prefix | URI | Description |
|--------|-----|-------------|
| materialDesign | http://materialdesigninxaml.net/winfx/xaml/themes | Primary namespace for all public Material Design types, controls, and converters. |
| materialDesignInternal | http://materialdesigninxaml.net/winfx/xaml/themes-internal | Namespace for types in internal sub-namespaces (MaterialDesignThemes.Wpf.Internal, MaterialDesignThemes.Wpf.Converters.Internal, MaterialDesignThemes.Wpf.Behaviors.Internal). |
[!WARNING]
Types exposed via the materialDesignInternal namespace are considered internal implementation details and are not guaranteed to maintain backwards-compatibility between versions. Use them at your own risk.
To use the internal namespace in XAML:
xml
Building the source
To build the project, following is required:
Microsoft Visual Studio 2022
.NET desktop development workload
This repository also contains 3 different demo applications:
MaterialDesignDemo - Reference WPF app with Material Design 2 styling, this contains all controls and is a recommended tool when developing apps with this library
MaterialDesign3Demo - Reference WPF app with Material Design 3 styling, under development
MahAppsDragablzDemo - Demo app for combining with Dragablz and MahApps
Screenshots
Material Design 3 demo app screenshots
!Buttons
!Cards
!Chips
Top issues
#3065Button styles: MaterialDesignRaisedButton used with MahApps.Metro causes serious memory leak25 comments · 2023-01-28#2196Broken binding errors after clicking on DataGrid header22 comments · 2020-12-19#1378Dialog does not size to content22 comments · 2019-08-19#3464Binding issues with ContextMenu and CompositeCollection17 comments · 2024-02-20#2976Use global SystemParameters.FocusVisualStyleKey insead of per control FocusVisual style16 comments · 2022-11-24#2125Weird visual artifacts in Demo. (Navigation Rail)13 comments · 2020-10-12#1298PopupBox is closed after being opened13 comments · 2019-06-27#1177Add documentation for combobox13 comments · 2019-01-22
Discussions
#4062TabControl Tabs Don't Work After First Time Showing In DialogHost3 comments · 2026-06-03#4048Has anyone written a good SKILL.md for WPF apps using Material Design In XAML?0 comments · 2026-04-30#4038Add Search button in TextBox1 comments · 2026-04-10#4036DecimalUpDown style2 comments · 2026-04-09#3996Visual Studio 2026 and .NET 10 Support1 comments · 2026-01-07#3994DialogHost Opened event fires before dialog is rendered - should it be "Opening"?1 comments · 2026-01-05#3992NumericUpDown binding error related to AutomationProperties.Name1 comments · 2026-01-04#3987Material Design styles not working on first load with DataTemplateSelector0 comments · 2025-12-24
Latest release
5.4.0 v5.4.0 2026-10-20What's Changed Key Changes Add DP MatchSizeWith to PackIcon by @corvinsz in https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/pull/4042 Add MaterialDesign toolbar toggle button style by @Keboo in https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/pull/4053 Allow for additional content in NavigationRail-bar by @corvinsz in https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/pull/4060 feat(AutoSuggestBox): add ShowSuggestionsOnFocus property by @corvinsz in https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/pull/4077 Remov