Version

GetItemOrContainerFromContainer Method

Returns the item represented by the specified element container.
Syntax
'Declaration
 
Protected Friend Function GetItemOrContainerFromContainer( _
   ByVal container As DependencyObject _
) As Object
protected internal object GetItemOrContainerFromContainer( 
   DependencyObject container
)

Parameters

container
The element for which the item will be returned.

Return Value

The item represented by the element, the element itself if it is the item or System.Windows.DependencyProperty.UnsetValue is the container is not recognized.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also