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.WpfElementsAssembly: Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)
Syntax
C# |
---|
protected Style SelectStyle( SchedulerElement element, StyleSelector selector, Style defaultStyle ) |
Visual Basic (Declaration) |
---|
Protected Function SelectStyle ( _ element As SchedulerElement, _ selector As StyleSelector, _ defaultStyle As Style _ ) As Style |
Parameters
- element
- Type: Mindscape.WpfElements..::.SchedulerElement
The SchedulerElement to select a style for.
- selector
- Type: System.Windows.Controls..::.StyleSelector
The StyleSelector for selecting the style.
- defaultStyle
- Type: System.Windows..::.Style
The default Style if the selector fails to select one.