CommandManager 클래스

정의

CommandBindingInputBinding 개체를 클래스 소유자 및 명령에 등록하고 명령 이벤트 처리기를 추가 및 제거하며 명령 상태를 쿼리하는 서비스를 제공하는 명령 관련 유틸리티 메서드를 제공합니다.

public ref class CommandManager sealed
public sealed class CommandManager
type CommandManager = class
Public NotInheritable Class CommandManager
상속
CommandManager

설명

CommandManager 는 라우트된 명령을 관리 합니다. 명령에 대 한 자세한 내용은 참조 하세요. 명령 개요합니다.

사용 하 여 RegisterClassCommandBinding 등록 하는 CommandBinding 인스턴스가 아닌 클래스에 있습니다.

사용 하 여 RegisterClassInputBinding 등록 하는 InputBinding 인스턴스가 아닌 클래스에 있습니다.

InvalidateRequerySuggested 메서드는 CommandManagerRequerySuggested 이벤트를 발생시키도록 합니다. RequerySuggested 이벤트 쿼리 명령을 실행할 수 있는지 여부를 확인 하려면 연관 된 명령에 명령 소스에 알립니다.

필드

CanExecuteEvent

CanExecute 연결된 이벤트를 식별합니다.

ExecutedEvent

Executed 연결된 이벤트를 식별합니다.

PreviewCanExecuteEvent

PreviewCanExecute 연결된 이벤트를 식별합니다.

PreviewExecutedEvent

PreviewExecuted 연결된 이벤트를 식별합니다.

메서드

AddCanExecuteHandler(UIElement, CanExecuteRoutedEventHandler)

지정된 CanExecuteRoutedEventHandler를 지정된 요소에 연결합니다.

AddExecutedHandler(UIElement, ExecutedRoutedEventHandler)

지정된 ExecutedRoutedEventHandler를 지정된 요소에 연결합니다.

AddPreviewCanExecuteHandler(UIElement, CanExecuteRoutedEventHandler)

지정된 CanExecuteRoutedEventHandler를 지정된 요소에 연결합니다.

AddPreviewExecutedHandler(UIElement, ExecutedRoutedEventHandler)

지정된 ExecutedRoutedEventHandler를 지정된 요소에 연결합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
InvalidateRequerySuggested()

CommandManagerRequerySuggested 이벤트를 발생시키도록 합니다.

MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
RegisterClassCommandBinding(Type, CommandBinding)

지정된 형식의 CommandBinding을 등록합니다.

RegisterClassInputBinding(Type, InputBinding)

지정된 형식의 지정된 InputBinding을 등록합니다.

RemoveCanExecuteHandler(UIElement, CanExecuteRoutedEventHandler)

지정된 요소에서 지정된 CanExecuteRoutedEventHandler를 분리합니다.

RemoveExecutedHandler(UIElement, ExecutedRoutedEventHandler)

지정된 요소에서 지정된 ExecutedRoutedEventHandler를 분리합니다.

RemovePreviewCanExecuteHandler(UIElement, CanExecuteRoutedEventHandler)

지정된 요소에서 지정된 CanExecuteRoutedEventHandler를 분리합니다.

RemovePreviewExecutedHandler(UIElement, ExecutedRoutedEventHandler)

지정된 요소에서 지정된 ExecutedRoutedEventHandler를 분리합니다.

ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

이벤트

RequerySuggested

CommandManager가 명령을 실행하는 기능을 변경할 수 있는 조건을 감지할 때 발생합니다.

연결된 이벤트

CanExecute

CanExecute(Object, IInputElement)RoutedCommand 메서드가 호출되고 PreviewCanExecute 이벤트가 처리되지 않았을 때 발생합니다.

Executed

Execute(Object, IInputElement)RoutedCommand 메서드가 호출되고 PreviewExecuted 이벤트가 처리되지 않았을 때 발생합니다.

PreviewCanExecute

CanExecute(Object, IInputElement)RoutedCommand 메서드가 호출될 때 발생합니다.

PreviewExecuted

Execute(Object, IInputElement)RoutedCommand 메서드가 호출될 때 발생합니다.

적용 대상

추가 정보