Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Microsoft Visual Studio 无法编译我的代码,因为缺少 ICommand 的命名空间。但它是 System.Windows.Input,不是吗?
using System.Windows.Input; internal class CommandCreate : ICommand { //code }
确保您已创建 WPF 应用程序。ICommand 是System.Windows.Input命名空间和System.dll程序集的一部分。
System.Windows.Input
System.dll