6

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?

Nick Heidke
  • 2,787
  • 2
  • 34
  • 58
  • Can you post the header of your XAML - just the `UserControl` definition. – ChrisF Jun 17 '11 at 14:16
  • Sorry about that! Forgot to use the StackOverflow code blocks when putting my comment in. I removed the class name and some of the converter definition, but that shouldn't be related. Thanks! – Nick Heidke Jun 17 '11 at 14:20
  • Have you added the reference in the project as well as the code? – ChrisF Jun 17 '11 at 14:21
  • Yes, the DLL is listed in the References folder as well as the above reference in the XAML. There's also a reference to "using Microsoft.Windows.Controls;" in the code behind page, but I'm not sure that it's necessary. – Nick Heidke Jun 17 '11 at 14:25

1 Answers1

11

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.