Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSDN sample code not working: BusyIndicator not found

Tags:

silverlight

I downloaded the source code of http://silverlight.net/learn/videos/silverlight-videos/twitter-search-monitor/#video

Visual Studio 2010 converted it to SL4. When running it complains

Error 3   The type or namespace name 'BusyIndicator' does not exist in the

namespace 'System.Windows.Controls' (are you missing an assembly reference?) C:\tutorials_dotnet\silverlight\HDI-Silverlight-source-TwitterSearchApp_CS\TwitterSearchMonitor\obj\Debug\Views\Search.g.cs 38 42 TwitterSearchMonitor

like image 337
user310291 Avatar asked Mar 26 '11 16:03

user310291


1 Answers

The BusyIndicator is not found in the Silverlight SDK, its in the Toolkit which you need download and install.

Once installed add a reference to the System.Windows.Controls.Toolkit dll.

Add this namespace alias to the page using the BusyIndicator:-

xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"

You then use toolkit: alias to define it:-

<toolkit:BusyIndicator x:Name="busyIndicator>
    <!-- your page content -->
</toolkit:BusyIndicator>
like image 58
AnthonyWJones Avatar answered Oct 03 '22 19:10

AnthonyWJones