【Theme】为WPF程序应用主题
首先将喜欢的主题添加到自己的Project中,如在VS中,右击Project,选择Add>Existing File,选择.xaml文件。
在App.xaml中,添加到指定主题的Application.Resources,例如:
App.xaml<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="******.App"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="******.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>