6

我正在开发一个 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">

在用户控件中,我有这个:

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

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

但是,我收到此错误,不知道为什么:

找不到类型“工具包:BusyIndi​​cator”。确认您没有丢失程序集引用并且所有引用的程序集都已构建。

有任何想法吗?

4

1 回答 1

12

导航到包含 DLL 的文件夹。右键单击 DLL 并选择属性。在底部附近的常规选项卡下,单击“取消阻止”按钮。你应该很高兴。

于 2011-06-17T14:36:45.187 回答