ItemContainer.IsSelected Property

Definition

Gets or sets a value that indicates whether the item is currently selected.

C#
public bool IsSelected { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
C#
[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; }

Property Value

Boolean

A value that indicates whether the item is currently selected. The default is false.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

This property sets the selection state for an individual instance of ItemContainer. Setting this property toggles the visibility of the item container's selection visual.

This property is automatically synchronized with the selection model of the ItemsView that this container belongs to.

Applies to

Product Versions
Windows App SDK 1.4, 1.5, 1.6