ItemsControl.ItemFromContainer(DependencyObject) Method

Definition

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

C#
public object ItemFromContainer(DependencyObject container);

Parameters

container
DependencyObject

The DependencyObject that corresponds to the item to be returned.

Returns

Object

The contained item, or the container if it does not contain an item.

Implements

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6