Erweitern Minimieren
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

KeyboardEventHandler-Delegat

Represents the method that will handle keyboard related events.

Namespace: System.Windows.Input
Assembly: PresentationCore (in presentationcore.dll)

public delegate void KeyboardEventHandler (
	Object sender,
	KeyboardEventArgs e
)
/** @delegate */
public delegate void KeyboardEventHandler (
	Object sender, 
	KeyboardEventArgs e
)
In XAML können Sie Delegaten verwenden, jedoch keine eigenen definieren.

Parameter

sender

The source of the event.

e

The event data.

KeyboardEventHandler corresponds to the KeyboardEventArgs base class and similar to KeyboardEventArgs does not support any specific events. For more information, see the KeyEventHandler and the KeyboardFocusChangedEventHandler.

When you create a KeyboardEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event-handler delegates, see Ereignisse und Delegaten.

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
© 2013 Microsoft. Alle Rechte vorbehalten.