Skip to content

LabelMarkupExtensions.Target<T> method

Sets the element that receives OnAccessKey when this label’s access key is activated; null lets the access key bubble up the parent chain.

public static T Target<T>(this T target, UIElement? value)
where T : Label
parameter description
T Receiver type.
target Target Label.
value Value assigned to Target.

The same element for chaining.

Sets: Label.Target