MaterialDesignThemes 5.3.2 (original) (raw)

NuGet-Themes NuGet-Colors

NuGet-Themes-CI NuGet-Colors-CI

Backers on Open Collective Sponsors on Open Collective Chat Issues

Comprehensive and easy to use Material Design theme and control library for the Windows desktop (WPF).

See screenshots

Table of contents

Getting started

This quick guide assumes you have already created a WPF project and are using Microsoft Visual Studio 2022.

Install-Package MaterialDesignThemes
<Application 
  x:Class="Example.App"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <materialDesign:BundledTheme BaseTheme="Light" PrimaryColor="DeepPurple" SecondaryColor="Lime" />

                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign2.Defaults.xaml" /> 
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
<Window [...]
  Style="{StaticResource MaterialDesignWindow}"
  [...] >

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).

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:

<Window ...
  xmlns:materialDesignInternal="http://materialdesigninxaml.net/winfx/xaml/themes-internal">

Building the source

To build the project, following is required:

This repository also contains 3 different demo applications:

Screenshots

Material Design 3 demo app screenshots
Material Design 2 demo app screenshots

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.

More examples

FAQ

Contributing

Before contributing code read the Contribution Guidelines

Want to say thanks? 🙏🏻

This project exists thanks to all the people who contribute.

Mentions

Backers

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.

NuGet packages (161)

Showing the top 5 NuGet packages that depend on MaterialDesignThemes:

Package Downloads
MaterialDesignThemes.MahApps ResourceDictionary instances containing Material Design templates and styles for WPF controls in the MahApps library. 1.4M
MaterialDesignExtensions Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps. The controls might not be specified in the Material Design specification or would crash the scope of Material Design in XAML Toolkit. 414.6K
Sv.Wpf.Core Sv.Wpf.Core 126.9K
MepApps.MepControls Mep Apps Inc. Base Code Module 118.5K
SNSHelper Support functions for SNS, LightMapper, Live Electrochem, BioLED controller etc 105.8K

GitHub repositories (129)

Showing the top 20 popular GitHub repositories that depend on MaterialDesignThemes:

Repository Stars
2dust/v2rayN A GUI client for Windows, Linux and macOS, support Xray and sing-box and others 109.1K
TGSAN/CMWTAT_Digital_Edition CloudMoe Windows 10/11 Activation Toolkit get digital license, the best open source Win 10/11 activator in GitHub. GitHub 上最棒的开源 Win10/Win11 数字权利(数字许可证)激活工具! 19.1K
cefsharp/CefSharp .NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework 10.2K
MahApps/MahApps.Metro A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort. 9.8K
ramjke/Translumo Advanced real-time screen translator for games, hardcoded subtitles in videos, static text and etc. 5.4K
SpaceTimee/Sheas-Cealer Just Ceal It (可用于无代理合法抵御网络监听和开展网络研究) 5.1K
2dust/clashN A clash client for Windows, support Mihomo 5.0K
umlx5h/LLPlayer The media player for language learning, with dual subtitles, AI-generated subtitles, real-time translation, and more! 3.8K
goatcorp/FFXIVQuickLauncher Custom launcher for FFXIV 3.1K
RolandPheasant/TailBlazer A modern file tail utility based on Rx.Net which show cases reactive programming and Dynamic Data (see https://github.com/RolandPheasant/DynamicData) 2.3K
Codeusa/SteamCleaner :us: A PC utility for restoring disk space from various game clients like Origin, Steam, Uplay, Battle.net, GoG and Nexon :us: 2.0K
BrianLima/UWPHook 🔗 Add your Windows Store or UWP games to Steam 2.0K
libgenapps/LibgenDesktop 1.9K
Tlaster/YourAV 宇宙级最轻量杀毒软件 1.6K
Accelerider/Accelerider.Windows A shell that runs Accelerider applications on the Windows platform. 1.5K
Babyhamsta/Aimmy Universal Second Eye for Gamers with Impairments (Universal AI Aim Aligner (AI Aimbot) - ONNX/YOLOv8 - C#) 1.5K
dathlin/ClientServerProject 一个C-S模版,该模版由三部分的程序组成,一个服务端运行的程序,一个客户端运行的程序,还有一个公共的组件,实现了基础的账户管理功能,版本控制,软件升级,公告管理,消息群发,共享文件上传下载,批量文件传送功能。具体的操作方法见演示就行。本项目的一个目标是:提供一个基础的中小型系统的C-S框架,客户端有三种模式,无缝集成访问,winform版本,wpf版本,asp.net mvc版本,方便企业进行中小型系统的二次开发和个人学习。同时网络组件方便的支持读写三菱和西门子PLC的数据,详细见Readme 1.4K
CXWorld/CapFrameX Frametime capture and analysis tool 1.2K
database64128/youtube-dl-wpf WPF GUI for youtube-dl and yt-dlp. 1.2K
awaescher/RepoZ 👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements 1.2K