Control.ApplyTemplate Method

Definition

Loads the relevant control template so that its parts can be referenced.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.Control.ApplyTemplate.

public:
 virtual bool ApplyTemplate() = ApplyTemplate;
bool ApplyTemplate();
public bool ApplyTemplate();
function applyTemplate()
Public Function ApplyTemplate () As Boolean

Returns

Boolean

A value that indicates whether the visual tree was rebuilt by this call. True if the tree was rebuilt; false if the previous visual tree was retained.

Applies to