GroupStyle.HeaderTemplate Property

Definition

Gets or sets the template that is used to display the group header.

DataTemplate HeaderTemplate();

void HeaderTemplate(DataTemplate value);
public DataTemplate HeaderTemplate { get; set; }
var dataTemplate = groupStyle.headerTemplate;
groupStyle.headerTemplate = dataTemplate;
Public Property HeaderTemplate As DataTemplate
<GroupStyle HeaderTemplate="dataTemplateReference" />
- or -
<GroupStyle>
  <GroupStyle.HeaderTemplate>
    <DataTemplate>
      dataTemplateDefinition
    </DataTemplate>
  </GroupStyle.HeaderTemplate>
</GroupStyle>

Property Value

A DataTemplate object that is used to display the group header. The default is null.

Applies to