简体   繁体   English

无法将DockPanel添加到VS2010中

[英]Cannot add DockPanel into VS2010

i am having a bit of a problem with a dockpanel, that being I cannot get it to work. 我在操作面板时遇到了一些问题,因为我无法使其正常工作。

I have installed the toolkit for silverlight 4, as shown in this link: 我已经为Silverlight 4安装了工具包,如以下链接所示:

http://procbits.com/2011/07/19/missing-dockpanel-add-dockpanel-for-silverlight-4-or-silverlight-5 http://procbits.com/2011/07/19/missing-dockpanel-add-dockpanel-for-silverlight-4-or-silverlight-5

but i have no suck luck in getting it to work, it says : "the type 'tk:Dockpanel' was not found' 但是我没有运气,它说:“找不到类型'tk:Dockpanel''”

Any help on this would be great 任何帮助都会很棒

Add this dll manually to the references, 将此dll手动添加到引用中,

System.Windows.Controls.Toolkit

also, define the namespace like this 另外,这样定义名称空间

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

If its a windows phone you need to install the version of silverlight supporting windows phone. 如果它是Windows Phone,则需要安装支持Windows Phone的Silverlight版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM