Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / C1StyleSelector Class / SelectStyle Method
The content.
The element to which the style will be applied.

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

    Parameters

    item
    The content.
    container
    The element to which the style will be applied.

    Return Value

    Returns an application-specific style to apply; otherwise, null.
    See Also