ToggleSwitch.OnContent ToggleSwitch.OnContent ToggleSwitch.OnContent ToggleSwitch.OnContent Property

Definition

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

public : Platform::Object OnContent { get; set; }
winrt::Windows::Foundation::IInspectable OnContent();

void OnContent(winrt::Windows::Foundation::IInspectable oncontent);
public object OnContent { get; set; }
Public ReadWrite Property OnContent As object
<ToggleSwitch OnContent="stringContent"/>

Property Value

object object

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.