CalendarDatePicker.HeaderTemplate Property

Definition

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

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.CalendarDatePicker.HeaderTemplate.

DataTemplate HeaderTemplate();

void HeaderTemplate(DataTemplate value);
public DataTemplate HeaderTemplate { get; set; }
var dataTemplate = calendarDatePicker.headerTemplate;
calendarDatePicker.headerTemplate = dataTemplate;
Public Property HeaderTemplate As DataTemplate
<CalendarDatePicker>
  <CalendarDatePicker.HeaderTemplate>
    singleDataTemplate
  </CalendarDatePicker.HeaderTemplate>
</CalendarDatePicker>
- or -
<CalendarDatePicker HeaderTemplate="resourceReferenceToDataTemplate"/>

Property Value

DataTemplate

The template that specifies the visualization of the header object. The default is null.

Applies to