New to Telerik UI for WPFStart a free 30-day trial

Provides a way to choose a DataTemplate for the TimeRulerItem 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 TimeRulerItemTemplateSelector : ScheduleViewDataTemplateSelector

Inheritance: objectScheduleViewDataTemplateSelectorTimeRulerItemTemplateSelector

Constructors

C#
public TimeRulerItemTemplateSelector()

Properties

Gets or sets the horizontal template of the DayMajorItem.

C#
public DataTemplate HorizontalDayMajorItemTemplate { get; set; }

Gets or sets the horizontal template of the DayMinorItem.

C#
public DataTemplate HorizontalDayMinorItemTemplate { get; set; }

Gets or sets the horizontal template of the TimelineGroup.

C#
public DataTemplate HorizontalTimelineGroupTemplate { get; set; }

Gets or sets the horizontal template of the TimelineMajorItem.

C#
public DataTemplate HorizontalTimelineMajorItemTemplate { get; set; }

Gets or sets the horizontal template of the TimelineMinorItem.

C#
public DataTemplate HorizontalTimelineMinorItemTemplate { get; set; }

Gets or sets the horizontal template of the WeekMajorItem.

C#
public DataTemplate HorizontalWeekMajorItemTemplate { get; set; }

Gets or sets the horizontal template of the WeekMinorItem.

C#
public DataTemplate HorizontalWeekMinorItemTemplate { get; set; }

MonthGroupTemplate

DataTemplate

Gets or sets the template of the MonthGroup.

C#
public DataTemplate MonthGroupTemplate { get; set; }

MonthItemTemplate

DataTemplate

Gets or sets the template of the MonthItem.

C#
public DataTemplate MonthItemTemplate { get; set; }

Gets or sets the vertical template of the DayMajorItem.

C#
public DataTemplate VerticalDayMajorItemTemplate { get; set; }

Gets or sets the vertical template of the DayMinorItem.

C#
public DataTemplate VerticalDayMinorItemTemplate { get; set; }

Gets or sets the vertical template of the TimelineGroup.

C#
public DataTemplate VerticalTimelineGroupTemplate { get; set; }

Gets or sets the vertical template of the TimelineMajorItem.

C#
public DataTemplate VerticalTimelineMajorItemTemplate { get; set; }

Gets or sets the vertical template of the TimelineMinorItem.

C#
public DataTemplate VerticalTimelineMinorItemTemplate { get; set; }

Gets or sets the vertical template of the WeekMajorItem.

C#
public DataTemplate VerticalWeekMajorItemTemplate { get; set; }

Gets or sets the vertical template of the WeekMinorItem.

C#
public DataTemplate VerticalWeekMinorItemTemplate { get; set; }

Methods

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

C#
public override DataTemplate SelectTemplate(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition)
Parameters:itemobject

The data object for which to select the template.

containerDependencyObject

The data-bound object.

activeViewDefinitionViewDefinitionBase

The active view definition of ScheduleView.

Returns:

DataTemplate

Returns a DataTemplate or null.

Overrides: ScheduleViewDataTemplateSelector.SelectTemplate(object, DependencyObject, ViewDefinitionBase)