Xceed Toolkit Plus for WPF v4.6 Documentation
GetContainerFromItem Method (ListBox)


Xceed.Wpf.ListBox Assembly > Xceed.Wpf.ListBox Namespace > ListBox Class : GetContainerFromItem Method
An object representing the item whose container is to be retrieved.
Retrieves the container used to display the specified item.
Syntax
'Declaration
 
Public Overridable Function GetContainerFromItem( _
   ByVal item As Object _
) As DependencyObject
'Usage
 
Dim instance As ListBox
Dim item As Object
Dim value As DependencyObject
 
value = instance.GetContainerFromItem(item)
public virtual DependencyObject GetContainerFromItem( 
   object item
)

Parameters

item
An object representing the item whose container is to be retrieved.

Return Value

A DependencyObject representing the item's container.
Requirements

Target Platforms: Windows 11, Windows 10, 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

See Also

Reference

ListBox Class
ListBox Members