ClassDayStyleSelector
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
DayStyleSelector()
Declaration
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
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
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
public virtual Style SelectStyle(object item, BindableObject bindable)
Parameters
item
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