Version

SelectStyle Method (ConditionalStyleSelector)

Returns the Style of the first ConditionalStyleRule in the list which evaluates to true given the data item in context.
Syntax
'Declaration
 
Public Overrides Function SelectStyle( _
   ByVal item As Object, _
   ByVal container As DependencyObject _
) As Style
public override Style SelectStyle( 
   object item,
   DependencyObject container
)

Parameters

item
The data item in context.
container
The element to which the style will be applied.

Return Value

The StyleToApply of the first ConditionalStyleRule in the Rules collection which evaluates to true given the data item in context. If none of the Rules evaluate to true, then this method returns null.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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