How can I get Silverlight 4 Tools to work in Web D

2020-07-02 12:20发布

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

2条回答
Evening l夕情丶
2楼-- · 2020-07-02 12:27

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.

查看更多
在下西门庆
3楼-- · 2020-07-02 12:48

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 />
查看更多
登录 后发表回答