Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / C1DataTemplateSelector Class / SelectTemplate Method
The data object for which to select the template.
The data-bound object.

In This Topic
    SelectTemplate Method
    In This Topic
    When overridden in a derived class, returns a DataTemplate based on custom logic.
    Syntax
    'Declaration
     
    
    Public Overridable Function SelectTemplate( _
       ByVal item As Object, _
       ByVal container As DependencyObject _
    ) As DataTemplate
    public virtual DataTemplate SelectTemplate( 
       object item,
       DependencyObject container
    )

    Parameters

    item
    The data object for which to select the template.
    container
    The data-bound object.

    Return Value

    Returns a DataTemplate or nullNothingnullptra null reference.
    See Also