【发布时间】:2012-10-09 05:39:10
【问题描述】:
Microsoft Visual Studio 无法编译我的代码,因为缺少 ICommand 的命名空间。但它是 System.Windows.Input,不是吗?
using System.Windows.Input;
internal class CommandCreate : ICommand
{
//code
}
【问题讨论】:
-
什么是编译器错误信息?
Microsoft Visual Studio 无法编译我的代码,因为缺少 ICommand 的命名空间。但它是 System.Windows.Input,不是吗?
using System.Windows.Input;
internal class CommandCreate : ICommand
{
//code
}
【问题讨论】:
确保您已创建 WPF 应用程序。 ICommand 是 System.Windows.Input 命名空间和 System.dll 程序集的一部分。
【讨论】: