ItemContainer.IsSelected Proprietà

Definizione

Ottiene o imposta un valore che indica se l'elemento è attualmente selezionato.

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

Valore della proprietà

Boolean

bool

Valore che indica se l'elemento è attualmente selezionato. Il valore predefinito è false.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Commenti

Questa proprietà imposta lo stato di selezione per una singola istanza di ItemContainer. L'impostazione di questa proprietà attiva o disattiva la visibilità dell'oggetto visivo di selezione del contenitore di elementi.

Questa proprietà viene sincronizzata automaticamente con il modello di selezione di ItemsView a cui appartiene questo contenitore.

Si applica a