KeyboardEventHandler 대리자

정의

키보드 관련 라우트된 이벤트를 처리할 메서드를 나타냅니다.

public delegate void KeyboardEventHandler(System::Object ^ sender, KeyboardEventArgs ^ e);
public delegate void KeyboardEventHandler(object sender, KeyboardEventArgs e);
type KeyboardEventHandler = delegate of obj * KeyboardEventArgs -> unit
Public Delegate Sub KeyboardEventHandler(sender As Object, e As KeyboardEventArgs)

매개 변수

sender
Object

이벤트 처리기가 연결된 개체입니다.

e
KeyboardEventArgs

이벤트 데이터입니다.

설명

WPF의 기존 키보드 이벤트는 대리자를 KeyboardEventHandler 사용하지 않습니다. KeyboardEventHandler 사용 하는 KeyboardEventArgs 기본 클래스의 이벤트 데이터 클래스. KeyboardEventArgs 보다 구체적인에 대 한 기본 클래스로 사용 KeyEventArgsKeyboardFocusChangedEventArgs 이벤트 데이터 클래스. 이러한 이벤트 데이터 클래스는 및 KeyboardFocusChangedEventHandler 대리자에 의해 KeyEventHandler 사용되며, 이러한 대리자는 및 UIElement.LostKeyboardFocus와 같은 UIElement.KeyDown 기존 WPF 이벤트에서 사용됩니다.

확장 메서드

GetMethodInfo(Delegate)

지정된 대리자가 나타내는 메서드를 나타내는 개체를 가져옵니다.

적용 대상

추가 정보