New to Telerik UI for WinForms? Start a free 30-day trial

Creates the theme-state tree used to style calendar cells according to enabled, selection, pointer, and date states.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CalendarCellStateManagerFactory : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactoryCalendarCellStateManagerFactory

Constructors

C#
public CalendarCellStateManagerFactory()

Methods

Marks the Selected, Today, and Weekend states as visible by default in the state manager.

C#
protected override void AddDefaultVisibleStates(ItemStateManager sm)
Parameters:smItemStateManager

The state manager to configure.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates the enabled/disabled root states and attaches calendar-specific states to the enabled branch.

C#
public override StateNodeBase CreateRootState()
Returns:

StateNodeBase

The root state node for a calendar cell.

Overrides: ItemStateManagerFactory.CreateRootState()

Builds the cell states for headers, selection, pointer interaction, focus, and day conditions such as today or weekend.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

The composite state node containing the calendar-cell states.

Overrides: ItemStateManagerFactory.CreateSpecificStates()