I have noticed several questions regarding how to add the SL toolkit to Visual Studio 2008 or Expression Blend 2. There are a lot of posts out there that show how to do one or another but sometimes we work in both applications and need to add it to both. Here it goes:
You first have to download the Silverlight Toolkit.
-
-
Unzip the file and extract to a location on your OS (e.g. D:\Projects\Silverlight\Source\Silverlight Toolkit\December 2008
How to add the Silverlight Toolkit to Visual Studio 2008 Toolbox
Note: You can add the controls anywhere in the Toolbox. I will create a new tab (Silverlight Toolkit) for this example.
-
Right click in the Toolbox and select Add Tab then name it Silverlight Toolkit.
-
Right click in the empty space of the Silverlight Toolkit Tab and select choose items.
-
Select the Silverlight Components tab.
-
Click Browse then browse to \Binaries folder and add Microsoft.Windows.Controls.Input and Microsoft.Windows.Controls.DataVisualization
-
The controls will now appear in your Toolbox.
Adding the Silverlight Control Toolkit to Expression Blend Asset Library
It is now easier to add to Blend, even though you have to repeat this process for every project. When you make controls available in Blend you need to add references to your project, which increases your download size.
-
In the Project Pane -- right click on References then select Add Reference.
-
Add references to Microsoft.Windows.Controls, Microsoft.Windows.Controls.DataVisualization, Microsoft.Windows.Controls.Input.
-
The controls will now appear in the Custom Controls section of the asset library.
This is a list of what is in each assembly:
Microsoft.Windows.Controls
- AutoCompleteBox
- DockPanel
- Expander
- HeaderedContentControl
- HeaderedItemsControls
- Label
- TreeView
- TreeViewItem
- Viewbox
- WrapPanel
Microsoft.Windows.Controls.Input
- ButtonSpinner
- NumericUpDown
Microsoft.Windows.Controls.DataVisualization
- Charting (with associated Axis, DataPoint and Series
You can find good support for the Silverlight Toolkit on the forums for Silverlight.Net.