Windows.UI.Xaml.Controls.ToggleSwitch.OffContentTemplate

June 22, 2022 · View on GitHub

-description

Gets or sets the DataTemplate used to display the control's content while in "Off" state.

-xaml-syntax

<ToggleSwitch>
  <ToggleSwitch.OffContentTemplate>
    singleDataTemplate
  </ToggleSwitch.OffContentTemplate>
</ToggleSwitch>
- or -
<ToggleSwitch OffContentTemplate="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](../windows.ui.xaml/datatemplate.md) that displays the control's content while in "Off" state.

-remarks

-examples

-see-also