找不到类型工具包:BusyIndi​​cator

Nic*_*dke 6 wpf xaml wpftoolkit visual-studio-2010 busyindicator

我正在开发一个WPF项目,其UserControl的开头定义为:

<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">
Run Code Online (Sandbox Code Playgroud)

在用户控件中我有这个:

<toolkit:BusyIndicator IsBusy="{Binding IsBusy}" BusyContent="Please wait...">
Run Code Online (Sandbox Code Playgroud)

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

但是,我收到此错误并且不知道原因:

找不到类型'toolkit:BusyIndi​​cator'.验证您是否缺少程序集引用,并且已构建所有引用的程序集.

有任何想法吗?

Bri*_*nas 12

导航到包含DLL的文件夹.右键单击DLL并选择属性.在底部附近的常规选项卡下,单击"取消阻止"按钮.你应该好好去.

  • 我在Windows 7中,我没有在Dll文件的属性上下文菜单中看到Unblock选项. (3认同)