【问题标题】:The type toolkit:BusyIndicator was not found类型工具包:BusyIndi​​cator 未找到
【发布时间】:2011-09-17 05:55:39
【问题描述】:

我正在开发一个 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”。确认您没有丢失程序集引用并且所有引用的程序集都已构建。

有什么想法吗?

【问题讨论】:

  • 您能否发布您的 XAML 的标头 - 只是 UserControl 定义。
  • 对不起!在添加评论时忘记使用 StackOverflow 代码块。我删除了类名和一些转换器定义,但这不应该相关。谢谢!
  • 你在项目中添加了引用以及代码吗?
  • 是的,DLL 列在 References 文件夹以及 XAML 中的上述引用中。还提到了“使用 Microsoft.Windows.Controls;”。在页面后面的代码中,但我不确定是否有必要。

标签: wpf visual-studio-2010 xaml wpftoolkit busyindicator


【解决方案1】:

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

【讨论】:

  • 我在 Windows 7 中,在 Dll 文件的属性上下文菜单中没有看到取消阻止选项。
猜你喜欢
  • 1970-01-01
  • 2012-11-16
  • 2016-03-22
  • 2012-12-15
  • 1970-01-01
  • 2016-07-13
  • 2013-05-19
  • 2021-10-14
  • 1970-01-01
相关资源
最近更新 更多