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

Represents an IStyleSelector that is used to select the style of the SchedulerBoxView that visualizes the special slot. This style selector enables conditional styling of special time slots based on their properties, such as read-only state, allowing different visual representations for different slot types.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class SpecialSlotStyleSelector : IStyleSelector

Inheritance: objectSpecialSlotStyleSelector

Implements: IStyleSelector

Constructors

Initializes a new instance of the SpecialSlotStyleSelector class.

C#
public SpecialSlotStyleSelector()

Properties

Gets or sets the Style of the SchedulerBoxView that visualizes the special slot when in normal state. This style is applied to special slots that are not read-only and represents the default appearance.

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

A Style object that defines the appearance of normal special slots.

Gets or sets the Style of the SchedulerBoxView that visualizes the special slot when it is read-only. This style is applied to special slots marked as read-only, typically indicating unavailable or restricted time periods.

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

A Style object that defines the appearance of read-only special slots.

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 special slot based on the slot's properties and state.

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

The data content representing the slot (SlotNode).

bindableBindableObject

The SchedulerBoxView 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)