views:

548

answers:

2

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

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

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

A: 

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 />
alejandrobog
that sounds good, but it still says controls:DockPanel cannot be found, seems the problem is the only component name I have in the Add Reference box that starts with "Microsoft" is "Microsoft.VisualBasic" will try to reinstall the silverlight 4 toolkit
Edward Tanguay
Sound good, this might help you http://blogs.silverlight.net/blogs/justinangel/archive/2008/10/30/silverlight-toolkit-dockpanel.aspx
alejandrobog
uninstalled toolkit and reinstalled, but no change...
Edward Tanguay
just saw that the silverlight 3 SDK is still installed, uninstalling...
Edward Tanguay
Edward Tanguay
added reference to: C:\Program Files\Microsoft SDKs\Silverlight\v4.0\Toolkit\Apr10\Bin\System.Windows.Controls.Toolkit.dll still has same problem, no intellisense and says reference is missing
Edward Tanguay
Sorry I cant give it a try right now, let me know you figure it out
alejandrobog
I'm getting closer, I tried it again on my other computer which still has web developer express 2008 with silverlight 3 and it worked the way I am trying it here, so I just need to figure out how the referencing of the silverlight 4 toolkit deviates from that of silverlight 3 (posted screenshot above).
Edward Tanguay
A: 

ok I got it to work with this namespace:

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

but it unfortunately only gives me partial intellisense which leads to this question.

Edward Tanguay