Provides a way to choose a DataTemplate based on the data object and the data-bound element.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
C#
public class ScheduleViewDataTemplateSelector
Inheritance: objectScheduleViewDataTemplateSelector
Derived Classes:
Constructors
Initializes a new instance of the ScheduleViewDataTemplateSelector class.
C#
public ScheduleViewDataTemplateSelector()
Methods
When overridden in a derived class, returns a System.Windows.DataTemplate based on custom logic.
C#
public virtual DataTemplate SelectTemplate(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition)
The data object for which to select the template.
containerDependencyObjectThe data-bound object.
activeViewDefinitionViewDefinitionBaseThe active view definition of ScheduleView.
Returns:DataTemplate
Returns a DataTemplate or null. The default value is null.