WPF 使用MaterialDesign简单教程

官网地址:http://materialdesigninxaml.net/git

gitHub地址:https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkitgithub

使用步骤:app

1.安装MaterialDesignThemes程序包,以下图.net

2.在App.xaml中<Application.Resources>  </Application.Resources> 添加component

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.DeepPurple.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Lime.xaml" />
            </ResourceDictionary.MergedDictionaries>blog

以下图it

3.程序以下图io