-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Compiling From Source
The NuGet package are backwards compatibile and can be used in any WPF application (targetting .NET 4.5 or later) with any version of Visual Studio. If you wish to compile the library from source it will REQUIRE Visual Studio 2019 (v16.3 or later) with .NET Core 3.1 SDK installed. This is because the source code leverages the latest features, such as expression bodied members, which cannot be compiled in earlier versions of Visual Studio.
The main project is contained within the MaterialDesignToolkit.Wpf.slnf
file located at the root of the repository. This is the file you want to open in Visual Studio.
After cloning the repository there are two commands that need to be run to restore dependency. Open a terminal at the root directory of the repository. The two commands to run are:
> dotnet tool restore
> dotnet paket restore
Launch visual studio and set the startup project to be Demos\MaterialDesignDemo
, compile and run (or simply press F5).
The first time you compile the project you may likely get the error ShowMeTheXAML was added to the MaterialDesignDemo project. Please rebuild the project.
. This is expected and should only occur the very first time you compile the library. Simply re-build the solution (from the top menu Build>>Rebuild Solution). You must rebuild, not just a normal incremental build. If you continue to get this error, you may need to restart Visual Studio. For more details see this comment.
This library uses paket to install its dependencies. Typically these should be downloaded automatically for you when you first compile the solution.
If you see any mistake or want to contribute to this wiki feel free.
Home
Contributing
Compiling From Source
Glossary
Getting Started with MDIX
Getting Started
Tutorial On YouTube (português-BR)
Frequently Asked Questions
Examples Repository
Release Notes
Pack Icon Changes
2.0.0 Breaking Changes
Controls
All Control Styles
Buttons
ComboBox
Dialogs
PopupBox
Snackbar
TextBox
Toggle Button
Transitions
Icons
Theming
Advanced Theming
Brush Names
Custom Palette Hues
Fonts
Overriding Material Design Styles
Swatches and Recommended Colors
Miscellaneous
MahApps Integration
Performance
Strong Naming
.NET 4.0 Compatibility
Projects using Material Design
Understanding Routed Commands