Class
ScheduleViewDataTemplateSelector

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:

cs-api-definition
public class ScheduleViewDataTemplateSelector

Inheritance: objectScheduleViewDataTemplateSelector

Derived Classes: GroupHeaderTemplateSelectorTimeRulerItemTemplateSelector

Constructors

ScheduleViewDataTemplateSelector()

Initializes a new instance of the ScheduleViewDataTemplateSelector class.

Declaration

cs-api-definition
public ScheduleViewDataTemplateSelector()

Methods

SelectTemplate(object, DependencyObject, ViewDefinitionBase)

When overridden in a derived class, returns a System.Windows.DataTemplate based on custom logic.

Declaration

cs-api-definition
public virtual DataTemplate SelectTemplate(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition)

Parameters

item

object

The data object for which to select the template.

container

DependencyObject

The data-bound object.

activeViewDefinition

ViewDefinitionBase

The active view definition of ScheduleView.

Returns

DataTemplate

Returns a DataTemplate or null. The default value is null.