Class
DayStyleSelector

Represents an IStyleSelector that is used to select the style of the in day headers. This style selector enables conditional styling of day labels based on their state, such as highlighting the current day differently from other days.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class DayStyleSelector : IStyleSelector

Inheritance: objectDayStyleSelector

Implements: IStyleSelector

Constructors

DayStyleSelector()

Declaration

cs-api-definition
public DayStyleSelector()

Properties

NormalLabelStyle

Gets or sets the Style of the when in normal state. This style is applied to day labels that are not the current day, providing the default appearance for regular days.

Declaration

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

Property Value

Style

A Style object that defines the appearance of normal day labels.

TodayLabelStyle

Gets or sets the Style of the when in today state. This style is applied to the day label representing the current day, allowing it to be visually distinguished from other days.

Declaration

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

Property Value

Style

A Style object that defines the appearance of today's day label.

Methods

SelectStyle(object, BindableObject)

Override this method to return a specific custom Style. This method is called by the scheduler to determine which style to apply to each day label based on the day's state and properties.

Declaration

cs-api-definition
public virtual Style SelectStyle(object item, BindableObject bindable)

Parameters

item

object

The data content representing the day (DateNode).

bindable

BindableObject

The Label element to which the style will be applied.

Returns

Style

An app-specific style to apply, or null if no specific style should be applied.

Implements IStyleSelector.SelectStyle(object, BindableObject)