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

Creates the visual-state tree used to render enabled, disabled, pressed, hovered, and toggled button states.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ToggleButtonStateManagerFactory : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactoryToggleButtonStateManagerFactory

Constructors

C#
public ToggleButtonStateManagerFactory()

Methods

Marks the supported toggle, pointer, and disabled state combinations as visible to theme tooling.

C#
protected override void AddDefaultVisibleStates(ItemStateManager res)
Parameters:resItemStateManager

The state manager whose default visible states are being registered.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates an enabled-state branch with a separate disabled state.

C#
public override StateNodeBase CreateRootState()
Returns:

StateNodeBase

The root condition node for the toggle button's visual states.

Overrides: ItemStateManagerFactory.CreateRootState()

Builds the enabled state combinations for toggle, intermediate, pressed, and hovered appearances.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

The state subtree evaluated when the button is enabled.

Overrides: ItemStateManagerFactory.CreateSpecificStates()

Creates the state manager that evaluates this factory's state tree.

C#
protected override ItemStateManager CreateStateManagerCore()
Returns:

ItemStateManager

A manager configured with this factory's root state.

Overrides: ItemStateManagerFactory.CreateStateManagerCore()