2011-06-17 35 views
6

我正在与用户控件的开始WPF项目定义为:类型工具包:BusyIndi​​cator控件未找到

<UserControl x:Class="" 
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
     xmlns:converters="clr-namespace:.Modules.Converters" 
     xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" 
     mc:Ignorable="d"> 

在用户控件我有这样的:

<toolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Please wait..."> 

我在我的项目中引用了WPFToolkit.Extended引用,并且该引用似乎是有效的(没有红色下划线)。

不过,我得到这个错误,不知道为什么:

类型“工具箱:BusyIndi​​cator控件”没有被发现。验证您是否缺少程序集引用,并且所有引用的程序集都已构建。

任何想法?

+0

你可以发布你的XAML的标题 - 只是'UserControl'定义。 – ChrisF

+0

对不起!忘记使用StackOverflow代码块时,我把我的评论。我删除了类名和一些转换器定义,但不应该有关。谢谢! – NickHeidke

+0

您是否在项目中添加了参考以及代码? – ChrisF

回答

12

导航到包含DLL的文件夹。右键单击DLL并选择属性。在底部的常规标签下点击“解除阻止”按钮。你应该很好走。

+0

这个伎俩,谢谢! – NickHeidke

+3

我在Windows 7中没有在Dll文件的属性上下文菜单中看到Unblock选项。 –

相关问题