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

Namespace:  Mindscape.WpfElements
Assembly:  Mindscape.WpfElements (in Mindscape.WpfElements.dll)
Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
protected DataTemplate SelectTemplate(
	SchedulerElement element,
	DataTemplateSelector selector,
	DataTemplate defaultTemplate
)
Visual Basic (Declaration)
Protected Function SelectTemplate ( _
	element As SchedulerElement, _
	selector As DataTemplateSelector, _
	defaultTemplate As DataTemplate _
) As DataTemplate

Parameters

element
Type: Mindscape.WpfElements..::.SchedulerElement
The SchedulerElement to select a template for.
selector
Type: System.Windows.Controls..::.DataTemplateSelector
The DataTemplateSelector for selecting the template.
defaultTemplate
Type: System.Windows..::.DataTemplate
The default DataTemplate if the selector fails to select one.

Return Value

The DataTemplate to be applied to the given SchedulerElement.

See Also