Udostępnij za pośrednictwem


ToggleSwitch.OffContent Property

Definition

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

public:
 property Platform::Object ^ OffContent { Platform::Object ^ get(); void set(Platform::Object ^ value); };
IInspectable OffContent();

void OffContent(IInspectable value);
public object OffContent { get; set; }
var object = toggleSwitch.offContent;
toggleSwitch.offContent = object;
Public Property OffContent As Object
<ToggleSwitch OffContent="stringContent"/>
- or -
<ToggleSwitch>
  <ToggleSwitch.OffContent>
    singleContentElement
  </ToggleSwitch.OffContent>
</ToggleSwitch>

Property Value

Object

Platform::Object

IInspectable

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.

Applies to