New to Telerik UI for .NET MAUIStart a free 30-day trial

Represents a DataTemplateSelector that selects the appropriate duration template for agenda appointments based on their start and end dates relative to the displayed date.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class AgendaAppointmentDurationTemplateSelector : DataTemplateSelector

Inheritance: objectAgendaAppointmentDurationTemplateSelector

Constructors

C#
public AgendaAppointmentDurationTemplateSelector()

Properties

Gets or sets the DataTemplate used for all-day appointments or appointments that span across multiple days.

C#
public DataTemplate AllDayDurationTemplate { get; set; }

Gets or sets the DataTemplate used for appointments that end on the displayed date but started on a previous date.

C#
public DataTemplate EndOnlyDurationTemplate { get; set; }

Gets or sets the DataTemplate used for appointments that both start and end on the displayed date.

C#
public DataTemplate StartEndDurationTemplate { get; set; }

Gets or sets the DataTemplate used for appointments that start on the displayed date but end on a different date.

C#
public DataTemplate StartOnlyDurationTemplate { get; set; }

Methods

Selects the appropriate duration template based on the appointment's start and end dates.

C#
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
Parameters:itemobject

The item to select a template for. Expected to be an AgendaAppointmentNode.

containerBindableObject

The bindable object containing the item.

Returns:

DataTemplate

The selected DataTemplate based on the following logic: