Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.19 KB

toggleswitch_headertemplate.md

File metadata and controls

38 lines (29 loc) · 1.19 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Controls.ToggleSwitch.HeaderTemplate
winrt property

Microsoft.UI.Xaml.Controls.ToggleSwitch.HeaderTemplate

-description

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

-xaml-syntax

<ToggleSwitch>
  <ToggleSwitch.HeaderTemplate>
    singleDataTemplate
  </ToggleSwitch.HeaderTemplate>
</ToggleSwitch>
- or -
<ToggleSwitch HeaderTemplate="resourceReferenceToDataTemplate"/>

-xaml-values

singleDataTemplate
singleDataTemplateA single DataTemplate object element. That DataTemplate would typically have multiple child elements that define the visual appearance of the data representation.
resourceReferenceToDataTemplate
resourceReferenceToDataTemplateA resource reference to an existing DataTemplate from a resources collection. The resource reference must specify the desired DataTemplate by key.
## -property-value The [DataTemplate](../microsoft.ui.xaml/datatemplate.md) used to display the control's header.

-remarks

-examples

-see-also