如何使Silverlight 4工具在Web Developer 2010 Express中工作? [英] How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

查看:73
本文介绍了如何使Silverlight 4工具在Web Developer 2010 Express中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 Windows 7 .

然后,我从此处安装了 Web Developer 2010 Express Web平台安装程序.

然后,我安装了 Silverlight 4工具包的4月15日发行版来自这里.

然后我添加了此参考:

替代文字http://www.deviantsart.com/upload/ijk0lm.png

然后在我的XAML中,我像这样引用它,但是它没有智能提示,并告诉我我缺少程序集引用:

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:

替代文字http://www.deviantsart.com/upload/cd4vrj.png

更新:

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

即使重建后也不起作用

在Web Developer 2010 Express中使用Silverlight 4工具包需要做什么?

因此,我在另一台计算机上的Web Developer Express 2008中再次使用Silverlight 3对其进行了测试,它确实按照我记得的方式工作,所以为什么在Silverlight 4中它不能以这种方式工作,我该怎么办?需要进行更改以使其正常工作吗?:

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?:

替代文字http://www.deviantsart.com/upload/14eo9k7.jpg

推荐答案

您应该先添加对Microsoft.Windows.Controls的引用,而不要添加对System.Windows.Controls.Toolkit的引用

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

这篇关于如何使Silverlight 4工具在Web Developer 2010 Express中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆