ToggleSwitch.Header Property

Definition

Gets or sets the header content.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ToggleSwitch.Header.

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

void Header(IInspectable value);
public object Header { get; set; }
var object = toggleSwitch.header;
toggleSwitch.header = object;
Public Property Header As Object
<ToggleSwitch Header="textContent" />
- or -
<ToggleSwitch>
  <ToggleSwitch.Header>
    singleUIElement
  </ToggleSwitch.Header>
</ToggleSwitch>

Property Value

Object

IInspectable

The header content for the ToggleSwitch.

Applies to