0

Why is 'BusyIndicator' not found?

I am using Silverlight 5 toolkit and I am references that version of Silverlight.Windows.Controls.Toolkit in my silverlight demo.

But I get this error and I do not know what to do

Error 16 The tag 'BusyIndicator' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit'. C:\Users\Bobbi\Documents\Visual Studio 2012\Projects...

How do I get the code to compile?

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by nmaillet
0

You'll need to add an explicit refrence to it in the XAML, kind of like using namespace ... ;. The MSDN has some documentation on this here. Basically, you add it to the root element it like so:

<Page
    ...
    xmlns:tk="clr-namespace:Silverlight.Windows.Controls.Toolkit;assembly=<assembly_name>"
    ...
    />

Where you'd replace <assembly_name> with the actual name of the assembly (without the .dll). You then reference it using the namespace you defined (in this case I used tk):

<tk:BusyIndicator/>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.