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.SilverlightElementsAssembly: Mindscape.SilverlightElements (in Mindscape.SilverlightElements.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
protected DataTemplate SelectTemplate( SchedulerElement element, DataTemplateSelector selector, DataTemplate defaultTemplate ) |
Visual Basic |
---|
Protected Function SelectTemplate ( _ element As SchedulerElement, _ selector As DataTemplateSelector, _ defaultTemplate As DataTemplate _ ) As DataTemplate |
Visual C++ |
---|
protected: DataTemplate^ SelectTemplate( SchedulerElement^ element, DataTemplateSelector^ selector, DataTemplate^ defaultTemplate ) |
Parameters
- element
- Type: Mindscape.SilverlightElements..::..SchedulerElement
The SchedulerElement to select a template for.
- selector
- Type: Mindscape.SilverlightElements..::..DataTemplateSelector
The DataTemplateSelector for selecting the template.
- defaultTemplate
- Type: System.Windows..::..DataTemplate
The default DataTemplate if the selector fails to select one.