在我的第一个silverlight应用程序中获取引用错误

时间:2013-07-26 11:37:48

标签: silverlight

我收到参考错误,

The type or namespace name 'ContextMenu' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?)

但我已经添加了参考,

C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\System.Windows.Controls.dll

请帮我解决这个问题

由于

2 个答案:

答案 0 :(得分:0)

嗨,请看下面的链接:

Silverlight ContextMenu was not found

在这个链接中我提到了contectmenu所需的其他dll。所以也请注意那些dll。

谢谢, Hitesh

答案 1 :(得分:0)

Hitesh给了你完美的答案。

此链接可让您更好地了解ContextMenu