Windows.UI.Xaml.Controls.ListViewBase.HeaderTemplate

June 22, 2022 ยท View on GitHub

-description

Gets or sets the DataTemplate used to display the content of the view header.

-xaml-syntax

<listViewBase HeaderTemplate="resourceReferenceToDataTemplate"/>
- or -
<listViewBase>
  <listViewBase.HeaderTemplate>
     <DataTemplate>
      dataTemplateDefinition
    </DataTemplate>
  </listViewBase.HeaderTemplate>
</listViewBase>

-xaml-values

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.
## -property-value The template that specifies the visualization of the header object. The default is **null**.

-remarks

-examples

-see-also

Header, HeaderTransitions