Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.24 KB

toggleswitch_offcontent.md

File metadata and controls

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

Windows.UI.Xaml.Controls.ToggleSwitch.OffContent

-description

Provides the object content that should be displayed using the OffContentTemplate when this ToggleSwitch has state of "Off".

-xaml-syntax

<ToggleSwitch OffContent="stringContent"/>
- or -
<ToggleSwitch>
  <ToggleSwitch.OffContent>
    singleContentElement
  </ToggleSwitch.OffContent>
</ToggleSwitch>

-xaml-values

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.
## -property-value The object content. In some cases this is a string, in other cases it is a single element that provides a root for further composition content. Probably the most common "set" usage is to place a binding here.

-remarks

-examples

-see-also