Class
AgendaAppointmentDurationTemplateSelector

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:

cs-api-definition
public class AgendaAppointmentDurationTemplateSelector : DataTemplateSelector

Inheritance: objectAgendaAppointmentDurationTemplateSelector

Constructors

AgendaAppointmentDurationTemplateSelector()

Declaration

cs-api-definition
public AgendaAppointmentDurationTemplateSelector()

Properties

AllDayDurationTemplate

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

Declaration

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

Property Value

DataTemplate

EndOnlyDurationTemplate

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

Declaration

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

Property Value

DataTemplate

StartEndDurationTemplate

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

Declaration

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

Property Value

DataTemplate

StartOnlyDurationTemplate

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

Declaration

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

Property Value

DataTemplate

Methods

OnSelectTemplate(object, BindableObject)

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

Declaration

cs-api-definition
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)

Parameters

item

object

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

container

BindableObject

The bindable object containing the item.

Returns

DataTemplate

The selected DataTemplate based on the following logic: