Class
SpecialSlotStyleSelector

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:

cs-api-definition
public class SpecialSlotStyleSelector : IStyleSelector

Inheritance: objectSpecialSlotStyleSelector

Implements: IStyleSelector

Constructors

SpecialSlotStyleSelector()

Initializes a new instance of the SpecialSlotStyleSelector class.

Declaration

cs-api-definition
public SpecialSlotStyleSelector()

Properties

NormalStyle

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.

Declaration

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

Property Value

Style

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

ReadOnlyStyle

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.

Declaration

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

Property Value

Style

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

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

Declaration

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

Parameters

item

object

The data content representing the slot (SlotNode).

bindable

BindableObject

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)