ItemContainerGenerator.ItemFromContainer Method

July 28, 2014

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

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

'Declaration
Public Function ItemFromContainer ( _
	container As DependencyObject _
) As Object

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 Nothing.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft