ISelectionInfo Interface

Definition

Manages whether items and ranges of items in the data source are selected in the list control.

Equivalent WinUI interface: Microsoft.UI.Xaml.Data.ISelectionInfo.

public interface class ISelectionInfo
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(772983430, 57837, 16965, 190, 73, 32, 126, 66, 174, 197, 36)]
/// [Windows.Foundation.Metadata.WebHostHidden]
struct ISelectionInfo
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(772983430, 57837, 16965, 190, 73, 32, 126, 66, 174, 197, 36)]
[Windows.Foundation.Metadata.WebHostHidden]
public interface ISelectionInfo
Public Interface ISelectionInfo
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The ISelectionInfo interface supports virtualization of large data sources for efficient presentation by XAML list controls. The other classes and interfaces that support data source virtualization are the following.

Methods

DeselectRange(ItemIndexRange)

Marks the items in the data source specified by itemIndexRange as not selected in the list control.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ISelectionInfo.DeselectRange.

GetSelectedRanges()

Returns the collection of ranges of items in the data source that are selected in the list control.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ISelectionInfo.GetSelectedRanges.

IsSelected(Int32)

Provides info about whether the item in the data source at the specified index is selected in the list control.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ISelectionInfo.IsSelected.

SelectRange(ItemIndexRange)

Marks the items in the data source specified by itemIndexRange as selected in the list control.

Equivalent WinUI method: Microsoft.UI.Xaml.Data.ISelectionInfo.SelectRange.

Applies to

See also