ItemContainerGenerator.ItemFromContainer Method

May 11, 2014

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public Object ItemFromContainer(
	DependencyObject container
)

Parameters

container
Type: System.Windows.DependencyObject
The DependencyObject that corresponds to the item to be returned.

Return Value

Type: System.Object
The contained item, or the container if it does not contain an item.

ExceptionCondition
ArgumentNullException

container is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft