Selects a style for the given SchedulerElement based on the given StyleSelector. If the selector is null, or if it fails to select a style, then the given default style will be returned.

Namespace: Mindscape.SilverlightElements
Assembly: Mindscape.SilverlightElements (in Mindscape.SilverlightElements.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
protected Style SelectStyle(
	SchedulerElement element,
	StyleSelector selector,
	Style defaultStyle
)
Visual Basic
Protected Function SelectStyle ( _
	element As SchedulerElement, _
	selector As StyleSelector, _
	defaultStyle As Style _
) As Style
Visual C++
protected:
Style^ SelectStyle(
	SchedulerElement^ element, 
	StyleSelector^ selector, 
	Style^ defaultStyle
)

Parameters

element
Type: Mindscape.SilverlightElements..::..SchedulerElement
The SchedulerElement to select a style for.
selector
Type: Mindscape.SilverlightElements..::..StyleSelector
The StyleSelector for selecting the style.
defaultStyle
Type: System.Windows..::..Style
The default Style if the selector fails to select one.

Return Value

The Style to be applied to the given SchedulerElement.

See Also