Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.35 KB

listviewbase_headertemplate.md

File metadata and controls

41 lines (32 loc) · 1.35 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.ListViewBase.HeaderTemplate
winrt property

Microsoft.UI.Xaml.Controls.ListViewBase.HeaderTemplate

-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