Class
GroupHeaderTemplateSelector

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

Inheritance: objectScheduleViewDataTemplateSelectorGroupHeaderTemplateSelector

Constructors

GroupHeaderTemplateSelector()

Declaration

cs-api-definition
public GroupHeaderTemplateSelector()

Properties

AgendaViewHorizontalTopDateTemplate

Gets or sets the template for the top horizontal GroupHeader when in agenda view. Only applies if the top level grouping is by date.

Declaration

cs-api-definition
public DataTemplate AgendaViewHorizontalTopDateTemplate { get; set; }

Property Value

DataTemplate

HorizontalTemplate

Gets or sets the template for the horizontal GroupHeader.

Declaration

cs-api-definition
public DataTemplate HorizontalTemplate { get; set; }

Property Value

DataTemplate

VerticalTemplate

Gets or sets the template for the vertical GroupHeader.

Declaration

cs-api-definition
public DataTemplate VerticalTemplate { get; set; }

Property Value

DataTemplate

Methods

SelectTemplate(object, DependencyObject, ViewDefinitionBase)

Returns a DataTemplate for the GroupHeader based on custom logic.

Declaration

cs-api-definition
public override 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

Returns

DataTemplate

The DataTemplate for the AppointmentItem.

Overrides ScheduleViewDataTemplateSelector.SelectTemplate(object, DependencyObject, ViewDefinitionBase)