Dela via


Slider.HeaderTemplate Property

Definition

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

DataTemplate HeaderTemplate();

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

Property Value

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

Applies to

See also