Expression Blend如何添加对第三方库主题中定义的外部资源字典的引用

Jee*_*Lee 6 wpf expression-blend expression-blend-4

我正在尝试添加对另一个项目(例如Elysium)中定义的资源库的引用,并在表达式混合中使用它.

以下是我在App.Xaml文件中合并资源字典的方法.

    <Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
            <ResourceDictionary Source="pack://application:,,,/MahApps.Metro.Resources;component/Icons.xaml" />
            <ResourceDictionary Source="pack://application:,,,/Telerik.Windows.Themes.Metro;component/Themes/System.Windows.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>
Run Code Online (Sandbox Code Playgroud)

但我似乎无法在Expression Blend 4中获得这些库中定义的任何画笔资源.任何想法?

在此输入图像描述

Jee*_*Lee 5

在Expression Blend论坛上找到我的答案:http://social.msdn.microsoft.com/Forums/en/blend/thread/21bdc8a1-4a58-49f9-ae4d-c736b8fd673a

"项目>链接到现有项目>(导航到外部资源字典,选择它并单击"确定".)重建."

  • 如果外部资源在dll中怎么办?我也在我的应用程序中使用MahApps.Metro,我希望能够使用Blend从我的视图中的主题中引用资源(主要是画笔)来为我发现它们. (2认同)