C#里使用WPF的MaterialDesignThemes
先要下载下面的包:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MaterialDesignColors" version="5.2.1" targetFramework="net48" />
<package id="MaterialDesignThemes" version="5.2.1" targetFramework="net48" />
<package id="Microsoft.Xaml.Behaviors.Wpf" version="1.1.39" targetFramework="net48" />
</packages>
接着编译App.xaml:
<Application x:Class="WpfApp52_Material.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http:/