ItemContainer.IsSelected Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
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 ItemContainer
individual . Mengatur properti ini mengalihkan visibilitas visual pemilihan kontainer item.
Properti ini secara otomatis disinkronkan dengan model pemilihan ItemTampilan tempat kontainer ini berada.