CommandBinding.PreviewCanExecute 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 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 이벤트가 발생합니다. 그런 다음 해당 CanExecuteCommandBinding 처리기가 호출됩니다. 명령 대상에 명령이 없 CommandBinding 으면 이벤트는 명령 CanExecute 과 연결된 요소를 검색하는 CommandBinding 요소 트리를 버블업합니다. 이벤트가 처리되지 CanExecute 않으면 이벤트가 발생합니다.
라우트된 이벤트 정보
| 항목 | 가치 |
|---|---|
| 식별자 필드 | PreviewCanExecuteEvent |
| 라우팅 전략 | Tunneling |
| 대리자 | CanExecuteRoutedEventHandler |
- 해당 버블링 이벤트는 .입니다 CanExecute.