ToggleSplitButton.IsChecked 屬性

定義

取得或設定是否檢查 ToggleSplitButton。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

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" />

屬性值

Boolean

bool

如果核取 ToggleSplitButton,則為true;如果未核取 ToggleSplitButton,則為false。 預設值為 false

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyNeedsDependencyPropertyFieldAttribute

適用於