Share via


KeyEventArgs.Handled Property

Definition

Gets or sets whether the key press event was handled.

public:
 property bool Handled { bool get(); void set(bool value); };
bool Handled();

void Handled(bool value);
public bool Handled { get; set; }
var boolean = keyEventArgs.handled;
keyEventArgs.handled = boolean;
Public Property Handled As Boolean

Property Value

Boolean

bool

True if the key press event has been handled by the appropriate delegate; false if it has not.

Implements

Remarks

Windows 10 Apps do not receive this event when an Input Method Editor (IME) is enabled. The Input Method Editor (IME) handles all keyboard input and sets Handled to true.

Windows Phone This API is supported in native apps only.

Applies to

See also