ItemContainerGenerator.ContainerFromItem(Object) Method

Definition

Note

ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.

Returns the container corresponding to the specified item.

public:
 virtual DependencyObject ^ ContainerFromItem(Platform::Object ^ item) = ContainerFromItem;
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
DependencyObject ContainerFromItem(IInspectable const& item);
/// [Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
DependencyObject ContainerFromItem(IInspectable const& item);
[Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public DependencyObject ContainerFromItem(object item);
[Windows.Foundation.Metadata.Deprecated("ContainerFromItem may be altered or unavailable for releases after Windows 8.1. Instead, use ItemsControl.ContainerFromItem.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public DependencyObject ContainerFromItem(object item);
function containerFromItem(item)
Public Function ContainerFromItem (item As Object) As DependencyObject

Parameters

item
Object

Platform::Object

IInspectable

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.

Attributes

Applies to