更新 : 2007 年 11 月
コマンド ID として動作し、また特定のコマンドを呼び出すための統一された方法として動作します。
名前空間 : 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 名前空間