Mel Lota's Weblog

Silverlight, SharePoint and other related technologies

Adding Silverlight Toolkit Controls to the Visual Studio Toolbox

Some great news, the latest version of the Silverlight Toolkit (November 08) has been made available to download on CodePlex. This release includes a host of new controls for Silverlight including TreeView, AutoCompleteBox, DockPanel and one I've been eagerly awaiting - WrapPanel.

Once you've downloaded the toolkit you'll probably want to add the controls to the Visual Studio toolbox. This can be achieved by the following steps:
(Note: I'm doing this on an installation of Visual Studio 2008 SP1 with the latest Silverlight Tools RTW installed)

- Extract the Toolkit zip file to a location on your computer

- Open up a Silverlight project in Visual Studio 2008 SP1

- Open up a XAML file and ensure that the Visual Studio toolbox is visible (if not it can be turned on via View > Toolbox or Ctrl+Alt+X)

- Right click on one of the toolbox headings and select Choose Items... (Note: The dialog took quite a while to load up on my machine)

 

- From the Choose Toolbox Items dialog, click on the Silverlight Components tab and then click Browse. Navigate to the folder where you extracted the Silverlight Toolkit and open the Binaries folder and select one of the assemblies and click Open. In this example I selected Microsoft.Windows.Controls.dll. Then on the Choose Toolbox Items dialog you should see that new controls have been added to the list and preselected (AutoCompleteBox, DockPanel etc.)

- Click OK and you should then see the new controls available in the toolbox.

- Repeat these steps for the other assemblies included with the Toolkit and you're good to go :)

Comments

Community Blogs said:

In this issue: John Stockton, Pierlag, Mel Lota, Ning Zhang, Carole Snyder, Martin Grayson, Jesse Liberty

# October 31, 2008 4:56 PM

David Roh said:

Thank you very much Mel - this saved me a lot of grief.

# November 1, 2008 9:30 AM

2008 November 03 - Links for today « My (almost) Daily Links said:

Pingback from  2008 November 03 - Links for today « My (almost) Daily Links

# November 3, 2008 4:29 AM

divimed said:

My VS2008 crash when i whant to add Silverlight dll's to toolbox.

# November 10, 2008 7:51 AM

John said:

Helpfull blog.

# November 20, 2008 12:59 AM

Chip said:

Thank you! Not sure why this info isn't included in a readme in the toolkit or even an installer that does this programatically.

# December 12, 2008 7:03 AM

Jon Davis said:

@divimed: start Visual Studio from the command line with: "devenv.exe /safemode"

# January 16, 2009 6:37 PM

cluce said:

I followed these exact steps but it deos not add anything to my toolbox. After this- Click OK and you should then see the new controls available in the toolbox.

It seems like it doesnt do anything.

# August 26, 2009 11:36 AM

Links Calendar - September 2009 - Organic text links by date said:

Pingback from  Links Calendar - September 2009 - Organic text links by date

# September 7, 2009 3:48 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)