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 

이벤트 유형

설명

때를 CanExecute 메서드를를 RoutedCommand 호출 되는 PreviewCanExecute 명령 대상에 명령 대상에서 이벤트 발생을 CommandBinding 명령에 대 한 합니다. 그런 다음 CanExecute 처리기에 대 한 CommandBinding 라고 합니다. 명령 대상에 없는 경우는 CommandBinding 명령에 대를 CanExecute 있는 요소를 검색 하는 요소 트리를 이벤트 버블링을 CommandBinding 명령과 사용 하 여 연결 합니다. 이벤트 처리 되지 않은 경우는 CanExecute 이벤트가 발생 합니다.

라우팅 이벤트 정보

식별자 필드 PreviewCanExecuteEvent
라우팅 전략 터널링
대리자 CanExecuteRoutedEventHandler
  • 해당 버블링 이벤트가 CanExecute합니다.

적용 대상

추가 정보