3

Microsoft Visual Studio 无法编译我的代码,因为缺少 ICommand 的命名空间。但它是 System.Windows.Input,不是吗?

using System.Windows.Input;

internal class CommandCreate : ICommand
{
   //code
}
4

1 回答 1

3

确保您已创建 WPF 应用程序。ICommand 是System.Windows.Input命名空间和System.dll程序集的一部分。

更多信息

于 2012-10-09T05:44:50.690 回答