Share via


ToggleSwitch.IsOn プロパティ

定義

ToggleSwitch の状態が "オン" かどうかを宣言する値を取得または設定します。

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

void IsOn(bool value);
public bool IsOn { get; set; }
var boolean = toggleSwitch.isOn;
toggleSwitch.isOn = boolean;
Public Property IsOn As Boolean
<ToggleSwitch IsOn="bool" />

プロパティ値

Boolean

bool

状態が "オン" の場合は true状態が "オフ" の場合は false。

注釈

"オン" 状態では 、OnContentTemplate のテンプレートが使用されます。 "オフ" 状態では、 OffContentTemplate のテンプレートが使用されます。

適用対象