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