【问题标题】:Error finding the resource dictionary [Fluent.Ribbon]查找资源字典时出错 [Fluent.Ribbon]
【发布时间】:2015-12-17 09:38:33
【问题描述】:

我已添加 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。

【问题讨论】:

    标签: vb.net visual-studio-2013 fluent-ribbon


    【解决方案1】:

    你的间距是错误的

    <ResourceDictionary Source="pack://application:,,,/Fluent;  Component/Themes/Office2013/Generic.xaml" />
    

    应该是

    <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Office2013/Generic.xaml" />
    

    【讨论】:

      猜你喜欢
      • 2013-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多