New to Telerik UI for WinFormsStart a free 30-day trial

Builds the visual-state tree used by RadButtonItem instances, defining the enabled/disabled, mouse-over, mouse-down, pressed, and default-button states.

Definition

Constructors

C#
public ButtonItemStateManagerFactory()

Methods

Registers the states that should be visible by default: mouse-over, mouse-down, pressed, default-button, and disabled.

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

The ItemStateManager to configure.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates the root state node, branching into the enabled state hierarchy or a disabled placeholder based on the element's EnabledProperty.

C#
public override StateNodeBase CreateRootState()
Returns:

StateNodeBase

The root StateNodeBase of the state tree.

Overrides: ItemStateManagerFactory.CreateRootState()

Creates the composite state node containing the mouse-over, mouse-down, pressed, and default-button states.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

A StateNodeBase composed of the button-specific states.

Overrides: ItemStateManagerFactory.CreateSpecificStates()