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

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:

C#
public class GroupHeaderTemplateSelector : ScheduleViewDataTemplateSelector

Inheritance: objectScheduleViewDataTemplateSelectorGroupHeaderTemplateSelector

Constructors

C#
public GroupHeaderTemplateSelector()

Properties

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

C#
public DataTemplate AgendaViewHorizontalTopDateTemplate { get; set; }

HorizontalTemplate

DataTemplate

Gets or sets the template for the horizontal GroupHeader.

C#
public DataTemplate HorizontalTemplate { get; set; }

VerticalTemplate

DataTemplate

Gets or sets the template for the vertical GroupHeader.

C#
public DataTemplate VerticalTemplate { get; set; }

Methods

Returns a DataTemplate for the GroupHeader based on 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
Returns:

DataTemplate

The DataTemplate for the AppointmentItem.

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