ComponentOne Basic Library for WPF and Silverlight
SelectStyle Method (C1StyleSelector)


C1.Silverlight Namespace > C1StyleSelector Class : SelectStyle Method
The content.
The element to which the style will be applied.
When overridden in a derived class, returns a Style based on custom logic.
Syntax
'Declaration
 
Public Overridable Function SelectStyle( _
   ByVal item As System.Object, _
   ByVal container As System.Windows.DependencyObject _
) As System.Windows.Style
'Usage
 
Dim instance As C1StyleSelector
Dim item As System.Object
Dim container As System.Windows.DependencyObject
Dim value As System.Windows.Style
 
value = instance.SelectStyle(item, container)
public virtual System.Windows.Style SelectStyle( 
   System.object item,
   System.Windows.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

Reference

C1StyleSelector Class
C1StyleSelector Members