Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.25 KB

toggleswitch_offcontenttemplate.md

File metadata and controls

40 lines (29 loc) · 1.25 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.ToggleSwitch.OffContentTemplate
winrt property

Windows.UI.Xaml.Controls.ToggleSwitch.OffContentTemplate

-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