Bagikan melalui


ItemContainer.IsSelected Properti

Definisi

Mendapatkan atau mengatur nilai yang menunjukkan apakah item saat ini dipilih.

public:
 property bool IsSelected { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
bool IsSelected();

void IsSelected(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
bool IsSelected();

void IsSelected(bool value);
public bool IsSelected { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
public bool IsSelected { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
var boolean = itemContainer.isSelected;
itemContainer.isSelected = boolean;
Public Property IsSelected As Boolean

Nilai Properti

Boolean

bool

Nilai yang menunjukkan apakah item saat ini dipilih. Default adalah false.

Atribut
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Keterangan

Properti ini menetapkan status pemilihan untuk instans ItemContainerindividual . Mengatur properti ini mengalihkan visibilitas visual pemilihan kontainer item.

Properti ini secara otomatis disinkronkan dengan model pemilihan ItemTampilan tempat kontainer ini berada.

Berlaku untuk