ToggleSplitButton.IsChecked Property

Definition

Gets or sets whether the ToggleSplitButton is checked.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property bool IsChecked { bool get(); void set(bool value); };
bool IsChecked();

void IsChecked(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
bool IsChecked();

void IsChecked(bool value);
public bool IsChecked { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField]
public bool IsChecked { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyField] set; }
Public Property IsChecked As Boolean
<ToggleSplitButton IsChecked="bool" />

Property Value

Boolean

bool

true if the ToggleSplitButton is checked; false if the ToggleSplitButton is unchecked. The default is false.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyFieldAttribute

Applies to