Class
MultidayViewDefinitionBase

Represents abstract definition of a view that shows multiple days. This base class provides common functionality for all multi-day scheduler views, including day view, week view, and custom multi-day views. It defines time ranges, tick intervals, styling options, and special slot handling.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class MultidayViewDefinitionBase : ViewDefinitionBase, INotifyPropertyChanged

Inheritance: objectViewDefinitionBaseMultidayViewDefinitionBase

Derived Classes: DayViewDefinitionMultidayViewDefinitionWeekViewDefinition

Implements: INotifyPropertyChanged

Inherited Members ViewDefinitionBase.TitlePropertyViewDefinitionBase.HeaderTextFormatPropertyViewDefinitionBase.TitleViewDefinitionBase.HeaderTextFormat

Constructors

MultidayViewDefinitionBase()

Initializes a new instance of the MultidayViewDefinitionBase class. Sets up default style selectors and configures the current time indicator based on visibility settings.

Declaration

cs-api-definition
public MultidayViewDefinitionBase()

Fields

DayEndTimeProperty

Identifies the DayEndTime property.

Declaration

cs-api-definition
public static readonly BindableProperty DayEndTimeProperty

Field Value

BindableProperty

DayStartTimeProperty

Identifies the DayStartTime property.

Declaration

cs-api-definition
public static readonly BindableProperty DayStartTimeProperty

Field Value

BindableProperty

DayStringFormatProperty

Identifies the DayStringFormat bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty DayStringFormatProperty

Field Value

BindableProperty

DayStyleSelectorProperty

Identifies the DayStyleSelector property.

Declaration

cs-api-definition
public static readonly BindableProperty DayStyleSelectorProperty

Field Value

BindableProperty

HorizontalLineStyleProperty

Identifies the HorizontalLineStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalLineStyleProperty

Field Value

BindableProperty

IsCurrentTimeIndicatorVisibleProperty

Identifies the IsCurrentTimeIndicatorVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsCurrentTimeIndicatorVisibleProperty

Field Value

BindableProperty

LinesThicknessProperty

Identifies the LinesThickness property.

Declaration

cs-api-definition
public static readonly BindableProperty LinesThicknessProperty

Field Value

BindableProperty

MajorTickLengthProperty

Identifies the MajorTickLength property.

Declaration

cs-api-definition
public static readonly BindableProperty MajorTickLengthProperty

Field Value

BindableProperty

MajorTickLineStyleProperty

Identifies the MajorTickLineStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty MajorTickLineStyleProperty

Field Value

BindableProperty

MaxTimeRulerExtentProperty

Identifies the MaxTimeRulerExtent property.

Declaration

cs-api-definition
public static readonly BindableProperty MaxTimeRulerExtentProperty

Field Value

BindableProperty

MinTimeRulerExtentProperty

Identifies the MinTimeRulerExtent property.

Declaration

cs-api-definition
public static readonly BindableProperty MinTimeRulerExtentProperty

Field Value

BindableProperty

MinorTickLengthProperty

Identifies the MinorTickLength property.

Declaration

cs-api-definition
public static readonly BindableProperty MinorTickLengthProperty

Field Value

BindableProperty

MinorTickLineStyleProperty

Identifies the MinorTickLineStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty MinorTickLineStyleProperty

Field Value

BindableProperty

SpecialSlotStyleSelectorProperty

Identifies the SpecialSlotStyleSelector property.

Declaration

cs-api-definition
public static readonly BindableProperty SpecialSlotStyleSelectorProperty

Field Value

BindableProperty

SpecialSlotTemplateProperty

Identifies the SpecialSlotTemplate property.

Declaration

cs-api-definition
public static readonly BindableProperty SpecialSlotTemplateProperty

Field Value

BindableProperty

SpecialSlotsSourceProperty

Identifies the SpecialSlotsSource property.

Declaration

cs-api-definition
public static readonly BindableProperty SpecialSlotsSourceProperty

Field Value

BindableProperty

TimeRulerLabelStyleProperty

Identifies the TimeRulerLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty TimeRulerLabelStyleProperty

Field Value

BindableProperty

TimeRulerMajorTickStringFormatProperty

Identifies the TimeRulerMajorTickStringFormat bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty TimeRulerMajorTickStringFormatProperty

Field Value

BindableProperty

TimeRulerWidthProperty

Identifies the TimeRulerWidth bindable property.

Declaration

cs-api-definition
public static readonly BindableProperty TimeRulerWidthProperty

Field Value

BindableProperty

VerticalLineStyleProperty

Identifies the VerticalLineStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalLineStyleProperty

Field Value

BindableProperty

Properties

DayEndTime

Gets or sets the time used to indicate the end of the day. This property defines when the visible time range ends in the scheduler view. Appointments and time slots after this time will not be displayed.

Declaration

cs-api-definition
public TimeOnly DayEndTime { get; set; }

Property Value

TimeOnly

A TimeOnly value representing the end of the visible day. Default is TimeOnly.MaxValue (23:59:59).

DayStartTime

Gets or sets the time used to indicate the start of the day. This property defines when the visible time range begins in the scheduler view. Appointments and time slots before this time will not be displayed.

Declaration

cs-api-definition
public TimeOnly DayStartTime { get; set; }

Property Value

TimeOnly

A TimeOnly value representing the start of the visible day. Default is TimeOnly.MinValue (00:00).

DayStringFormat

Gets or sets the string format of the header days. This property controls how day information is displayed in the day headers, allowing customization of date presentation across different cultures and preferences.

Declaration

cs-api-definition
public string DayStringFormat { get; set; }

Property Value

string

A format string used to display day information. Uses standard .NET date format strings.

DayStyleSelector

Gets or sets the style selector of the days. The day style selector allows conditional styling of day headers based on day state, such as highlighting today differently from other days.

Declaration

cs-api-definition
public IStyleSelector DayStyleSelector { get; set; }

Property Value

IStyleSelector

An IStyleSelector that provides styles for day headers.

HorizontalLineStyle

Gets or sets the style of the horizontal lines. Horizontal lines separate time periods and create the grid structure that helps users align appointments with specific times.

Declaration

cs-api-definition
public Style HorizontalLineStyle { get; set; }

Property Value

Style

A Style object defining the appearance of horizontal grid lines.

IsCurrentTimeIndicatorVisible

Gets or sets a value indicating whether the current time indicator is visible. When enabled, displays a line or marker showing the current time position within the scheduler view, updating automatically as time progresses.

Declaration

cs-api-definition
public bool IsCurrentTimeIndicatorVisible { get; set; }

Property Value

bool

True to show the current time indicator, false to hide it. Default is true.

LinesThickness

Gets or sets the thickness of the lines. This property controls the visual weight of grid lines, affecting the overall appearance and readability of the scheduler layout.

Declaration

cs-api-definition
public double LinesThickness { get; set; }

Property Value

double

A double value representing line thickness in device-independent units. Default varies by platform.

MajorTickLength

Gets or sets the length of the major ticks. Major ticks represent the primary time intervals displayed in the time ruler and typically show hour boundaries with visible labels.

Declaration

cs-api-definition
public TimeSpan MajorTickLength { get; set; }

Property Value

TimeSpan

A TimeSpan representing the interval between major ticks. Default is 1 hour.

MajorTickLineStyle

Gets or sets the style of the major lines. Major tick lines correspond to major time intervals (typically hours) and are usually more prominent than minor tick lines.

Declaration

cs-api-definition
public Style MajorTickLineStyle { get; set; }

Property Value

Style

A Style object defining the appearance of major tick lines.

MaxTimeRulerExtent

Gets or sets the maximum size of the time ruler in pixels.

Declaration

cs-api-definition
public double MaxTimeRulerExtent { get; set; }

Property Value

double

The maximum size of the time ruler in pixels.

Remarks

This property determines the maximum size of the time ruler in pixels. MaxTimeRulerExtent of 1400 pixels means that the time ruler will be rendered with no more than 1400 pixels no matter how much time it represents. If there is less than 1400 pixels available, it will be squeezed as much as the value of the MinTimeRulerExtent property allows to.

MinTimeRulerExtent

Gets or sets the minimum size of the time ruler in pixels.

Declaration

cs-api-definition
public double MinTimeRulerExtent { get; set; }

Property Value

double

The minimum size of the time ruler in pixels.

Remarks

This property determines the minimum size of the time ruler in pixels. MinTimeRulerExtent of 1400 pixels means that the time ruler will be rendered with at least 1400 pixels no matter how much time it represents. If there is more than 1400 pixels available, it will be stretched as much as the value of the MaxTimeRulerExtent property allows to.

MinorTickLength

Gets or sets the length of the minor ticks. Minor ticks represent secondary time intervals displayed between major ticks, providing finer granularity for time positioning without labels.

Declaration

cs-api-definition
public TimeSpan MinorTickLength { get; set; }

Property Value

TimeSpan

A TimeSpan representing the interval between minor ticks. Default is 30 minutes.

MinorTickLineStyle

Gets or sets the style of the minor lines. Minor tick lines appear between major ticks and provide finer time granularity. They are typically styled to be less prominent than major tick lines.

Declaration

cs-api-definition
public Style MinorTickLineStyle { get; set; }

Property Value

Style

A Style object defining the appearance of minor tick lines.

SpecialSlotStyleSelector

Gets or sets the style selector of the special slots. Special slot style selector enables conditional styling of special time periods based on slot properties, such as read-only state or custom slot types.

Declaration

cs-api-definition
public IStyleSelector SpecialSlotStyleSelector { get; set; }

Property Value

IStyleSelector

An IStyleSelector that provides styles for special slots.

SpecialSlotTemplate

Gets or sets the template of the special slots. Special slot template allows complete customization of special slot appearance beyond simple styling, enabling complex content and layouts.

Declaration

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

Property Value

DataTemplate

A DataTemplate that defines the visual structure for special slots.

SpecialSlotsSource

Gets or sets the special slots source. Special slots are used to highlight specific time periods with different styling, such as lunch breaks, holidays, maintenance windows, or unavailable periods.

Declaration

cs-api-definition
public IEnumerable<Slot> SpecialSlotsSource { get; set; }

Property Value

IEnumerable<Slot>

An enumerable collection of Slot objects defining special time periods.

TimeRulerLabelStyle

Gets or sets the style of the time ruler labels. Time ruler labels display time information alongside major ticks, helping users identify specific times for appointment scheduling.

Declaration

cs-api-definition
public Style TimeRulerLabelStyle { get; set; }

Property Value

Style

A Style object defining the appearance of time labels in the time ruler.

TimeRulerMajorTickStringFormat

Gets or sets the string format of the major ticks. This property controls how time information is displayed in the time ruler for major tick marks, allowing customization of time presentation.

Declaration

cs-api-definition
public string TimeRulerMajorTickStringFormat { get; set; }

Property Value

string

A format string used to display time information. Uses standard .NET time format strings.

TimeRulerWidth

Gets or sets the width of the TimeRuler. This property controls the horizontal space allocated to the time ruler, affecting how much room is available for time labels and the overall layout balance.

Declaration

cs-api-definition
public double TimeRulerWidth { get; set; }

Property Value

double

A double value representing the width in device-independent units. Must be non-negative.

VerticalLineStyle

Gets or sets the style of the vertical lines. Vertical lines separate different days in multi-day views, providing visual boundaries between day columns.

Declaration

cs-api-definition
public Style VerticalLineStyle { get; set; }

Property Value

Style

A Style object defining the appearance of vertical separator lines.

Methods

CreateDefaultTitle()

Creates the default title for the view definition.

Declaration

cs-api-definition
protected override string CreateDefaultTitle()

Returns

string

Overrides ViewDefinitionBase.CreateDefaultTitle()