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

我只是一个虾纸丫 提交于 2019-12-21 07:11:59

问题


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


回答1:


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 />



回答2:


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.



来源:https://stackoverflow.com/questions/2661010/how-can-i-get-silverlight-4-tools-to-work-in-web-developer-2010-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!