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

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:

C#
public class DayStyleSelector : IStyleSelector

Inheritance: objectDayStyleSelector

Implements: IStyleSelector

Constructors

C#
public DayStyleSelector()

Properties

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.

C#
public Style NormalLabelStyle { get; set; }
Property Value:

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

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.

C#
public Style TodayLabelStyle { get; set; }
Property Value:

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

Methods

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.

C#
public virtual Style SelectStyle(object item, BindableObject bindable)
Parameters:itemobject

The data content representing the day (DateNode).

bindableBindableObject

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)