gpt4 book ai didi

.net - CommandManager “cannot resolve symbol”

转载 作者:行者123 更新时间:2023-12-03 10:20:43 24 4
gpt4 key购买 nike

将“RelayCommand”类(使用CommandManager类)添加到我的Silverlight应用程序后,出现错误:

The name 'CommandManager' does not exist in the current context



此类是PresentationCore.dll程序集中的System.Windows.Input命名空间的成员。问题是我无法将此dll添加到我的应用中...

我有一个奇怪的假设:此类(CommmandManager)不能在Silverlight中使用。我对吗?

如何实现MVVM模式( http://msdn.microsoft.com/en-us/magazine/dd419663.aspx)?

谢谢。

最佳答案

您可以使用MVVM Light framework,它提供了RelayCommand的Silverlight版本。

关于.net - CommandManager “cannot resolve symbol”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2901516/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com