MaterialDesignColors 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 (86)

Showing the top 5 NuGet packages that depend on MaterialDesignColors:

Package Downloads
MaterialDesignThemes ResourceDictionary instances containing Material Design templates and styles for WPF controls in .NET. 10.9M
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
MaterialDesignThemes.Wpf Material Design in XAML Toolkit - WPF Themes 119.0K
MepApps.MepControls Mep Apps Inc. Base Code Module 118.5K

GitHub repositories (75)

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

Repository Stars
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
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
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
dathlin/ClientServerProject 一个C-S模版,该模版由三部分的程序组成,一个服务端运行的程序,一个客户端运行的程序,还有一个公共的组件,实现了基础的账户管理功能,版本控制,软件升级,公告管理,消息群发,共享文件上传下载,批量文件传送功能。具体的操作方法见演示就行。本项目的一个目标是:提供一个基础的中小型系统的C-S框架,客户端有三种模式,无缝集成访问,winform版本,wpf版本,asp.net mvc版本,方便企业进行中小型系统的二次开发和个人学习。同时网络组件方便的支持读写三菱和西门子PLC的数据,详细见Readme 1.4K
CXWorld/CapFrameX Frametime capture and analysis tool 1.2K
awaescher/RepoZ 👨‍💻 A zero-conf git repository hub for Windows and macOS with Windows Explorer- & CLI-enhancements 1.2K
visualHFT/VisualHFT VisualHFT is a WPF/C# desktop GUI that shows market microstructure in real time. You can track advanced limit‑order‑book dynamics and execution quality, then use its modular plugins to shape the analysis to your workflow. 1.1K
microsoft/powerapps-tools Unsupported PowerApps Tools & Apps 1.1K
Snoothy/UCR Universal Control Remapper [Alpha] 1.1K
HenJigg/wpf-abp Cross-platform mobile project and WPF client based on ABP framework Xamarin.Forms 990
HenJigg/wpf-uidesign 使用WPF创建的一些UI设计案例 990
spiegelp/MaterialDesignExtensions Material Design Extensions is based on Material Design in XAML Toolkit to provide additional controls and features for WPF apps 803
mili-tan/AuroraDNS.GUI 纯净抗污染,简单轻量级 795
dukus/digiCamControl DSLR camera remote control open source software 721