System.Windows.Input 命名空间


.NET Framework 类库
ICommand 接口

更新:2007 年 11 月

定义一个命令

命名空间:  System.Windows.Input
程序集:  PresentationCore(在 PresentationCore.dll 中)
用于 XAML 的 XMLNS:http://schemas.microsoft.com/winfx/xaml/presentation

语法

Visual Basic(声明)
<TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")> _
Public Interface ICommand
Visual Basic (用法)
Dim instance As ICommand
C#
[TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public interface ICommand
Visual C++
[TypeConverterAttribute(L"System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null")]
public interface class ICommand
J#
/** @attribute TypeConverterAttribute("System.Windows.Input.CommandConverter, PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Custom=null") */
public interface ICommand
JScript
public interface ICommand
XAML

<object property="predefinedCommandName"/>

- 或 -

<object property="predefinedCommandName.predefinedCommandName"/>

- 或 -

<object property=x:Static customClassName.customCommandName}"/>

备注

RoutedCommandRoutedUICommand 是 Windows Presentation Foundation (WPF) 中 ICommand 接口的两个实现。

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.5、3.0
另请参见

参考

其他资源

标记 :


Page view tracker