官網(wǎng)地址:
gw???????MahApps.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.運行效果
?文章來源:http://www.zghlxwxcb.cn/news/detail-460737.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-460737.html
到了這里,關(guān)于WPF界面美化的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!