-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.ListViewBase.HeaderTemplate |
winrt property |
Gets or sets the DataTemplate used to display the content of the view header.
<listViewBase HeaderTemplate="resourceReferenceToDataTemplate"/>
- or -
<listViewBase>
<listViewBase.HeaderTemplate>
<DataTemplate>
dataTemplateDefinition
</DataTemplate>
</listViewBase.HeaderTemplate>
</listViewBase>
- 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.
- dataTemplateDefinition
- dataTemplateDefinitionDefinition for the DataTemplate, including its root element container and parts within that present the data-based content.