The type toolkit:BusyIndicator was not found

2019-02-22 04:45发布

问题:

I'm working on a WPF project with the beginning of a UserControl defined as:

<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">

Within the user control I have this:

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

I have the WPFToolkit.Extended referenced within my project and that reference appears to be valid (does not have a red underline).

However, I'm getting this error and don't know why:

The type 'toolkit:BusyIndicator' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

Any ideas?

回答1:

Navigate to the folder that conatins the DLL. Right click on the DLL and select properties. Under the general tab near the bottom click the "Unblock" button. You should be good to go.