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:
public class DayStyleSelector : IStyleSelector
Inheritance: objectDayStyleSelector
Implements:
Constructors
public DayStyleSelector()
Properties
NormalLabelStyle
Style
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.
public Style NormalLabelStyle { get; set; }
A Style object that defines the appearance of normal day labels.
TodayLabelStyle
Style
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.
public Style TodayLabelStyle { get; set; }
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.
public virtual Style SelectStyle(object item, BindableObject bindable)
The data content representing the day (DateNode).
bindableBindableObjectThe 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: