Google's Material Design in XAML & WPF, for C# & VB.Net.
Google's Material Design in XAML & WPF, for C# & VB.Net.
) ) Comprehensive and easy to use Material Design theme and control library for the Windows desktop (WPF).
[!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-Package MaterialDesignThemesApp.xaml…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
<Window [...]
Style="{StaticResource MaterialDesignWindow}"
[...] >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
materialDesignInternalnamespace 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:
<Window ...
xmlns:materialDesignInternal="http://materialdesigninxaml.net/winfx/xaml/themes-internal">To build the project, following is required:
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 libraryMaterialDesign3Demo - Reference WPF app with Material Design 3 styling, under developmentMahAppsDragablzDemo - Demo app for combining with Dragablz and MahApps[!WARNING] The screenshots below are taken from the Material Design 2 demo app. Material Design 3 is the latest version, so the UI shown here may differ from the latest design.
Before contributing code read the Contribution Guidelines
material-design-in-xamlWant to say thanks? 🙏🏻
This project exists thanks to all the people who contribute.
Thank you to all our backers! 🙏 Become a backer.
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Become a sponsor.
Outlined Chip with IsDeletable has stange hover effect.
Deadzone in `NumericUpDown` control
Add NumericUpDown for `long` and `double`
Poor performance following ShadowAssist.CacheMode change #3616
DialogHost accessibility issue
Child of WindowsFormsHost inside materialDesign:DialogHost.DialogContent not visible.
Use ComponentResourceKey instead of strings to identify resources
New colors don't match old v4.x colors
Demo app huge memory leak
Unmanaged memory leak after upgrading to 4.9