CommandBinding.PreviewCanExecute イベント

定義

この CommandBinding に関連付けられたコマンドが現在のコマンド ターゲットで実行可能かどうかのチェックを開始したときに発生します。

public:
 event System::Windows::Input::CanExecuteRoutedEventHandler ^ PreviewCanExecute;
public event System.Windows.Input.CanExecuteRoutedEventHandler PreviewCanExecute;
member this.PreviewCanExecute : System.Windows.Input.CanExecuteRoutedEventHandler 
Public Custom Event PreviewCanExecute As CanExecuteRoutedEventHandler 
Public Event PreviewCanExecute As CanExecuteRoutedEventHandler 

イベントの種類

注釈

の メソッドRoutedCommandCanExecute呼び出されると、PreviewCanExecuteコマンド ターゲットに コマンドの が含まれている場合、CommandBindingコマンド ターゲットで イベントが発生します。 次に、 の CanExecute ハンドラーが CommandBinding 呼び出されます。 コマンド ターゲットに コマンドの が含 CommandBinding まれていない場合、イベントは CanExecute 、 コマンドに関連付けられた を持つ CommandBinding 要素を検索する要素ツリーをバブルアップします。 イベントが処理されない場合は、イベントが CanExecute 発生します。

ルーティングされたイベント情報

識別子フィールド PreviewCanExecuteEvent
ルーティング戦略 トンネリング
代理人 CanExecuteRoutedEventHandler
  • 対応するバブリング イベントは です CanExecute

適用対象

こちらもご覧ください