Bagikan melalui


TabItem.IsSelected Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah TabItem dipilih.

public:
 property bool IsSelected { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
public bool IsSelected { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.IsSelected : bool with get, set
Public Property IsSelected As Boolean

Nilai Properti

true TabItem jika dipilih; jika tidak, false. Defaultnya adalah false.

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan IsSelected properti untuk memilih secara TabItem terprogram.

<TabItem Header="Background" IsSelected="true" Style="{StaticResource Triggers}">
</TabItem>

Keterangan

Informasi Properti Dependensi

Item Nilai
Bidang pengidentifikasi IsSelectedProperty
Properti metadata diatur ke true BindsTwoWayByDefault, , AffectsParentMeasureJournal

Berlaku untuk