Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ToggleSwitch.OnContentTemplate Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

DataTemplate OnContentTemplate();

void OnContentTemplate(DataTemplate value);
public DataTemplate OnContentTemplate { get; set; }
var dataTemplate = toggleSwitch.onContentTemplate;
toggleSwitch.onContentTemplate = dataTemplate;
Public Property OnContentTemplate As DataTemplate
<ToggleSwitch>
 <ToggleSwitch.OnContentTemplate>
 singleDataTemplate
 </ToggleSwitch.OnContentTemplate>
</ToggleSwitch>
- or -
<ToggleSwitch OnContentTemplate="resourceReferenceToDataTemplate"/>

Property Value

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

Applies to


Feedback

Was this page helpful?