materialdesigninxaml-wpf-toolkit

Implements Material Design themes and controls in WPF desktop applications using XAML and C#.

4|Updated May 16, 2026
Ready to run
npx skills add https://github.com/reason-machines/design-skills --skill materialdesigninxaml-wpf-toolkit-reason-machines
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: materialdesigninxaml-wpf-toolkit
Source: https://github.com/reason-machines/design-skills/tree/main/skills/materialdesigninxaml-wpf-toolkit
Command: npx skills add https://github.com/reason-machines/design-skills --skill materialdesigninxaml-wpf-toolkit-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires MaterialDesignThemes.

What problem does it solve? Building modern, visually consistent Windows desktop applications in WPF requires extensive custom styling work, and developers often struggle to apply Google's Material Design language to native WPF controls without a comprehensive theme library. ## Core Features & Use Cases - Theme Configuration: Set up Material Design 2 or 3 themes with light/dark modes and configurable primary/secondary color palettes via App.xaml or runtime C# code. - Styled Controls: Apply Material Design styles to buttons, cards, text fields, dialogs, snackbars, chips, progress indicators, date pickers, and data grids. - Icon & Navigation Support: Use the bundled Material Design Icons pack, DrawerHost navigation drawers, color zones, elevation shadows, and page transitions. - Use Case: A developer building a WPF inventory management app can configure a dark theme, add a navigation drawer, show confirmation dialogs before deletions, and display snackbar notifications, all with standard Material Design styling. ## Quick Start Add Material Design to my WPF app by configuring the BundledTheme in App.xaml and styling my main window with MaterialDesignWindow.

Frequently Asked Questions about materialdesigninxaml-wpf-toolkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Material Design to a WPF application?▼

Install the MaterialDesignThemes NuGet package, then add a BundledTheme and the MaterialDesign2.Defaults or MaterialDesign3.Defaults resource dictionary to App.xaml. Set your window style to MaterialDesignWindow to complete the setup.

How do I switch between light and dark themes in WPF at runtime?▼

Use the PaletteHelper class to get the current ITheme, call SetBaseTheme with Theme.Dark or Theme.Light, then apply it with SetTheme. You can also change primary and secondary colors the same way.

Does MaterialDesignInXamlToolkit support Material Design 3?▼

Yes, the library supports both Material Design 2 and Material Design 3. Reference the MaterialDesign3.Defaults.xaml resource dictionary instead of MaterialDesign2.Defaults.xaml in your App.xaml merged dictionaries.

How do I show dialogs in WPF with Material Design?▼

Wrap your content in a DialogHost control with an Identifier, then call DialogHost.Show with your content and the identifier from C#. Use DialogHost.CloseDialogCommand in dialog buttons to return results.

Why are Material Design icons not showing in my WPF app?▼

Icons fail when the MaterialDesignThemes resource dictionaries are not merged in App.xaml. Verify the BundledTheme and Defaults dictionary are present, and use the PackIcon control with a valid Kind value.

Can I use MaterialDesignInXamlToolkit with MVVM pattern?▼

Yes, the library works with MVVM frameworks like CommunityToolkit.Mvvm. Bind theme toggles, dialog commands, and Snackbar MessageQueue properties to your ViewModel properties and RelayCommand actions.