Skip to content

stefan-schweiger/MaterialDesignInXamlToolkit

 
 

Repository files navigation

Material Design In XAML Toolkit

Alt text

Summary

  • XAML Resources for Google swatches displayed
  • WPF control themes
  • Small sample apps within solution showing how to include chosen colours and use the resources:
    • MaterialDesignColors.WpfExample - illustrates palette use and control themes in WPF
    • MahMaterialDragablzMashUp - illustrates combination of Dragablz, MahApps, and Material Design for saweet UI.
    • MaterialDesignColors.UniversalExample - illustrates palette use in WinRT
  • Compatible with MahApps and Dragablz. See demo app in source and Mash Up! blog.
  • Includes hacky console app which was used to generate the XAML colour definitions

Gitter Build NuGet-Themes NuGet-Themes Issues

How Can I Use The Colours?

  1. Choose your source:
  • Install the NuGet package Install-Package MaterialDesignColors
  • Manually pull from Themes directory and include in your project
  1. In your App.XAML choose the primary palette and secondary palette, and configure standard brushes, as in this example (this is identical for WPF/WinRT)
  2. Make colourful things.
  3. Want help choosing your palette? Try the Palette Builder (this is very much a work-in-progress)

How Can I Use The Themes?

  • Install Nuget package Install-Package MaterialDesignThemes
  • Import required resource dictionaries, and use styles as desired. For examples, see the MaterialDesignColors.WpfExample project in the source code.

A Brief History

In creating a Material Design TabControl theme for Dragablz, the first step was getting hold of all the colours. The resulting resource dictionaries work well stand alone, so are completely re-usable.

Then I took a step further and created a few simple styles which turned out looking OK.

Alt text

About

Google Material Design In XAML & WPF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 61.1%
  • JavaScript 38.0%
  • Other 0.9%