Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

I installed Windows 7.

I then installed Web Developer 2010 Express from here with the Web Platform Installer.

I then installed the the April 15 release of Silverlight 4 Toolkit from here.

I then added this reference:

alt text http://www.deviantsart.com/upload/ijk0lm.png

Then in my XAML, I reference it like this but it gives me no intellisense and tells me that I am missing an assembly reference:

alt text http://www.deviantsart.com/upload/cd4vrj.png

update:

xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

doesn't work either, even after a rebuild

What do I have to do to use the Silverlight 4 Toolkit in Web Developer 2010 Express?

Addendum:

So I tested it out again with Silverlight 3 in Web Developer Express 2008 on another computer and it does indeed work the way I remember, so why doesn't it work the this way in Silverlight 4 and what do I need to change to get it to work?:

alt text http://www.deviantsart.com/upload/14eo9k7.jpg

like image 967
Edward Tanguay Avatar asked Apr 18 '10 03:04

Edward Tanguay


1 Answers

You should add a reference to Microsoft.Windows.Controls not System.Windows.Controls.Toolkit then this

xmlns:controls="clr-namespace:Microsoft.Windows.Controls;assembly=Microsoft.Windows.Controls"

<controls:DockPanel />
like image 84
alejandrobog Avatar answered Nov 03 '22 14:11

alejandrobog