【发布时间】: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,并且该引用似乎是有效的(没有红色下划线)。
但是,我收到了这个错误,不知道为什么:
找不到类型“工具包:BusyIndicator”。确认您没有丢失程序集引用并且所有引用的程序集都已构建。
有什么想法吗?
【问题讨论】:
-
您能否发布您的 XAML 的标头 - 只是
UserControl定义。 -
对不起!在添加评论时忘记使用 StackOverflow 代码块。我删除了类名和一些转换器定义,但这不应该相关。谢谢!
-
你在项目中添加了引用以及代码吗?
-
是的,DLL 列在 References 文件夹以及 XAML 中的上述引用中。还提到了“使用 Microsoft.Windows.Controls;”。在页面后面的代码中,但我不确定是否有必要。
标签: wpf visual-studio-2010 xaml wpftoolkit busyindicator