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

Builds the editor state tree for enabled, disabled, focus, and mouse-presence states.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class EditorElementStateManager : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactoryEditorElementStateManager

Derived Classes: RadTextBoxElementStateManager

Constructors

C#
public EditorElementStateManager()

Methods

Adds the states that should appear in the default visible-state list for an editor.

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

The state manager whose visible-state list is being configured.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates a root state that branches on Enabled and then evaluates focus and mouse presence.

C#
public override StateNodeBase CreateRootState()
Returns:

StateNodeBase

The state tree, with a Disabled placeholder for disabled elements.

Overrides: ItemStateManagerFactory.CreateRootState()

Creates the enabled-state branches for focus and mouse presence.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

A composite containing the ContainsFocus and ContainsMouse conditions.

Overrides: ItemStateManagerFactory.CreateSpecificStates()