我添加了 fluent.dll 作为参考。之后在我的项目中添加一个名为“Themes”的文件夹,并将所有主题文件夹粘贴到“Themes”目录中。在我的 application.xaml 中,我添加了以下代码,即
<Application x:Class="Application"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<!--Attach Default Fluent Control's Theme-->
<ResourceDictionary Source="pack://application:,,,/Fluent; Component/Themes/Office2013/Generic.xaml" />
</Application.Resources>
</Application>
但是当运行它显示一个错误
查找资源字典时出错
我正在使用 Vs2013 .net ver4.5。