Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Google's Material Design in XAML & WPF, for C# & VB.Net.

License

NotificationsYou must be signed in to change notification settings

MaterialDesignInXAML/MaterialDesignInXamlToolkit

Repository files navigation

NuGet-ThemesNuGet-Colors

NuGet-Themes-CINuGet-Colors-CI

Backers on Open CollectiveSponsors on Open CollectiveChatIssues

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 designand runtime), according toGoogle's guidelines
  • FullMaterial Design Icons icon pack
  • Easy transition effects
  • Compatible withDragablz,MahApps
  • Demo applications included in the source project

See screenshots

Table of contents

Getting started

Note

See thefull 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 yourApp.xaml
<Applicationx: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:BundledThemeBaseTheme="Light"PrimaryColor="DeepPurple"SecondaryColor="Lime" />                <ResourceDictionarySource="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign2.Defaults.xaml" />             </ResourceDictionary.MergedDictionaries>        </ResourceDictionary>    </Application.Resources></Application>
  • If you want to target Material Design 3, alter theResourceDictionary line in the snippet above to useMaterialDesign3.Defaults.xaml.

  • Alter yourMainWindow.xaml

<Window [...]Style="{StaticResource MaterialDesignWindow}"  [...] >

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

Warning

The screenshots below are taken from the Material Design 2 demo app.It is possible that these are out of date. Run the demo app from latest source to see the latest version.

Show images

Screenshot of WPF Material Design 2 demo application home pageButtonsTogglesFieldsComboBoxesPaletteColor ToolsPickersIconsCardsMenus and ToolbarsProgress BarsDialogsListsTree ViewSlidersChipsTypographyGroup BoxSnackbarsElevation

More examples

FAQ

Contributing

Before contributing code read theContribution Guidelines

Want to say thanks? 🙏🏻

  • Hit the ⭐ star ⭐ button
  • If you'd like to make a very much appreciated financial donation please visitopen collective

This project exists thanks to all the people who contribute.

Mentions

Backers

Thank you to all our backers! 🙏Become a backer.

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.Become a sponsor.

About

Google's Material Design in XAML & WPF, for C# & VB.Net.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors195

Languages


[8]ページ先頭

©2009-2025 Movatter.jp