ItemsControl.ContainerFromItem(Object) Method

Definition

Returns the container corresponding to the specified item.

C#
public DependencyObject ContainerFromItem(object item);

Parameters

item
Object

The item to retrieve the container for.

Returns

A container that corresponds to the specified item, if the item has a container and exists in the collection; otherwise, null.

Implements

M:Microsoft.UI.Xaml.Controls.IItemContainerMapping.ContainerFromItem(System.Object)

Applies to

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6