ContentControl.ContentTemplateRoot Property

Definition

Gets the root element of the data template specified by the ContentTemplate property.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentControl.ContentTemplateRoot.

public:
 property UIElement ^ ContentTemplateRoot { UIElement ^ get(); };
UIElement ContentTemplateRoot();
public UIElement ContentTemplateRoot { get; }
var uIElement = contentControl.contentTemplateRoot;
Public ReadOnly Property ContentTemplateRoot As UIElement

Property Value

UIElement

The root element of the data template specified by the ContentTemplate property. The default is null.

Applies to