-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.ToggleSwitch.OffContent |
winrt property |
Provides the object content that should be displayed using the OffContentTemplate when this ToggleSwitch has state of "Off".
<ToggleSwitch OffContent="stringContent"/>
- or -
<ToggleSwitch>
<ToggleSwitch.OffContent>
singleContentElement
</ToggleSwitch.OffContent>
</ToggleSwitch>
- stringContent
- stringContentA string that declares the Off state content. Can also be a reference to a resource, which might be a string or could also be a composited object.
- singleContentElement
- singleContentElementA single object element for a class that derives from UIElement and can be handled by the default ContentPresenter.