Scheduler for WPF and Silverlight | ComponentOne
C1.Silverlight.Schedule Namespace / ItemContainerGenerator Class / ContainerFromItem Method
The Object item to find the container for.

In This Topic
    ContainerFromItem Method
    In This Topic
    Returns the container element corresponding to the given item.
    Syntax
    'Declaration
     
    
    Public Function ContainerFromItem( _
       ByVal item As Object _
    ) As DependencyObject
    public DependencyObject ContainerFromItem( 
       object item
    )

    Parameters

    item
    The Object item to find the container for.

    Return Value

    A container element that corresponds to the given item. Returns a null reference if the item does not belong to the item collection, or if a container element has not been generated for it.
    See Also