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