ToolCommand 类
更新:2007 年 11 月
充当命令标识符和调用特定命令的统一方法。
命名空间: Microsoft.Windows.Design.Interaction
程序集: Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Class ToolCommand _
Implements ICommand
用法
Dim instance As ToolCommand
public class ToolCommand : ICommand
public ref class ToolCommand : ICommand
public class ToolCommand implements ICommand
备注
ToolCommand 类与 Windows Presentation Foundation (WPF) 中的 RoutedCommand 类相似。调用 Execute 或 CanExecute 方法时,将搜索绑定树,以查找绑定到此命令的命令绑定。然后执行由命令绑定指定的事件处理程序。
继承层次结构
System.Object
Microsoft.Windows.Design.Interaction.ToolCommand
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。
另请参见
参考
Microsoft.Windows.Design.Interaction 命名空间