IItemContainerMapping Interface

Definition

Provides methods that let an ItemsControl map data items to UI containers.

Equivalent WinUI interface: Microsoft.UI.Xaml.Controls.IItemContainerMapping.

public interface class IItemContainerMapping
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1405743674, 62045, 17514, 153, 184, 199, 174, 184, 57, 5, 15)]
/// [Windows.Foundation.Metadata.WebHostHidden]
struct IItemContainerMapping
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1405743674, 62045, 17514, 153, 184, 199, 174, 184, 57, 5, 15)]
[Windows.Foundation.Metadata.WebHostHidden]
public interface IItemContainerMapping
Public Interface IItemContainerMapping
Derived
Attributes

Windows 10 requirements

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

Methods

ContainerFromIndex(Int32)

Returns the container for the item at the specified index within the ItemCollection.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.IItemContainerMapping.ContainerFromIndex.

ContainerFromItem(Object)

Returns the container corresponding to the specified item.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.IItemContainerMapping.ContainerFromItem.

IndexFromContainer(DependencyObject)

Returns the index to the item that has the specified, generated container.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.IItemContainerMapping.IndexFromContainer.

ItemFromContainer(DependencyObject)

Returns the item that corresponds to the specified, generated container.

Equivalent WinUI method: Microsoft.UI.Xaml.Controls.IItemContainerMapping.ItemFromContainer.

Applies to