Returns the container that belongs to the specified ItemsControl that owns the given container element.
Public Shared Function ContainerFromElement ( _ itemsControl As ItemsControl, _ element As DependencyObject _ ) As DependencyObject
public static DependencyObject ContainerFromElement( ItemsControl itemsControl, DependencyObject element )
public: static DependencyObject^ ContainerFromElement( ItemsControl^ itemsControl, DependencyObject^ element )
static member ContainerFromElement : itemsControl:ItemsControl * element:DependencyObject -> DependencyObject
Windows 7, 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