-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.TextBox.HeaderTemplate |
winrt property |
Gets or sets the DataTemplate used to display the content of the control's header.
<TextBox>
<TextBox.HeaderTemplate>
singleDataTemplate
</TextBox.HeaderTemplate>
</TextBox>
- or -
<TextBox HeaderTemplate="resourceReferenceToDataTemplate"/>
- singleDataTemplate
- singleDataTemplateA single DataTemplate object element. That DataTemplate would typically have multiple child elements that define the visual appearance of the data representation.
- resourceReferenceToDataTemplate
- resourceReferenceToDataTemplateA resource reference to an existing DataTemplate from a resources collection. The resource reference must specify the desired DataTemplate by key through a {StaticResource} markup extension usage.