Skip to content

UIElementMarkupExtensions.OnLostFocus<T> method

Subscribes handler to LostFocus. Occurs when the element loses keyboard focus.

public static T OnLostFocus<T>(this T target, Action handler)
where T : UIElement
parameter description
T Receiver type.
target Target UIElement.
handler Handler subscribed to LostFocus.

The same element for chaining.

Sets: UIElement.LostFocus