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

Creates the theme state tree for a toggle-switch thumb, including its On state.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ToggleSwitchThumbElementStateManager : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactoryToggleSwitchThumbElementStateManager

Constructors

C#
public ToggleSwitchThumbElementStateManager()

Methods

Registers On and Disabled.On alongside the base visible states.

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

The state manager receiving the visible state names.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Adds a condition for the thumb's IsOnProperty.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

The subtree containing the On state.

Overrides: ItemStateManagerFactory.CreateSpecificStates()

Creates the state manager that evaluates the thumb's theme state tree.

C#
protected override ItemStateManager CreateStateManagerCore()
Returns:

ItemStateManager

The manager configured with this factory's root state.

Overrides: ItemStateManagerFactory.CreateStateManagerCore()