ToggleSwitch.OnContentTemplate ToggleSwitch.OnContentTemplate ToggleSwitch.OnContentTemplate ToggleSwitch.OnContentTemplate Property

Definition

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

public : DataTemplate OnContentTemplate { get; set; }
DataTemplate OnContentTemplate();

void OnContentTemplate(DataTemplate oncontenttemplate);
public DataTemplate OnContentTemplate { get; set; }
Public ReadWrite Property OnContentTemplate As DataTemplate
<ToggleSwitch>
  <ToggleSwitch.OnContentTemplate>
    singleDataTemplate
  </ToggleSwitch.OnContentTemplate>
</ToggleSwitch>

Property Value

The DataTemplate that displays the control's content while in "On" state.