Version

SelectStyle Method (RandomSelectStyleSelector)

Returns a Style for the given item.
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

A style with picked at random from the Styles collection.
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