【问题标题】:Missing namespace or type for ICommand缺少 ICommand 的命名空间或类型
【发布时间】:2012-10-09 05:39:10
【问题描述】:

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

using System.Windows.Input;

internal class CommandCreate : ICommand
{
   //code
}

【问题讨论】:

  • 什么是编译器错误信息?

标签: c# icommand


【解决方案1】:

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

更多信息

【讨论】:

    猜你喜欢
    • 2016-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-14
    • 2018-02-02
    • 1970-01-01
    相关资源
    最近更新 更多