官网地址:
gwMahApps.Metro - Quick Start
使用方法
1.使用NuGet搜索 MahApps.Metro
2.修改Windows为mah:MertoWindow
3.修改MainWindow.xaml.cs 继承MetroWindos
4.App.xaml中加入
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<!-- Theme setting -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Blue.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
5.运行效果
文章来源:https://www.toymoban.com/news/detail-460737.html
文章来源地址https://www.toymoban.com/news/detail-460737.html
到了这里,关于WPF界面美化的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!