Skip to content

ControlMarkupExtensions.Template<T> method

Sets the template that provides this control’s visual tree; null keeps the control’s own drawn visuals.

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

The same element for chaining.

Sets: Control.Template