ToggleSwitch.HeaderTemplate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the DataTemplate used to display the control's header.
DataTemplate HeaderTemplate();
void HeaderTemplate(DataTemplate value);
public DataTemplate HeaderTemplate { get; set; }
var dataTemplate = toggleSwitch.headerTemplate;
toggleSwitch.headerTemplate = dataTemplate;
Public Property HeaderTemplate As DataTemplate
<ToggleSwitch>
<ToggleSwitch.HeaderTemplate>
singleDataTemplate
</ToggleSwitch.HeaderTemplate>
</ToggleSwitch>
- or -
<ToggleSwitch HeaderTemplate="resourceReferenceToDataTemplate"/>
Property Value
The DataTemplate used to display the control's header.