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

Creates enabled, direction-specific, and collapsed visual states for collapsible-panel elements.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadCollapsiblePanelElementStateManagerFactory : ItemStateManagerFactory

Inheritance: objectItemStateManagerFactoryBaseItemStateManagerFactoryRadCollapsiblePanelElementStateManagerFactory

Constructors

Creates a state factory using the properties that supply expand direction and expanded state.

C#
public RadCollapsiblePanelElementStateManagerFactory(RadProperty expandDirectionProperty, RadProperty isExpandedProperty)
Parameters:expandDirectionPropertyRadProperty

The property used to select direction-specific states.

isExpandedPropertyRadProperty

The property used to select the collapsed state.

Methods

Adds the direction, collapsed, and disabled states to the manager's default visible states.

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

The state manager to configure.

Overrides: ItemStateManagerFactory.AddDefaultVisibleStates(ItemStateManager)

Creates an enabled-state root that links to the collapsible-panel states and a disabled placeholder.

C#
public override StateNodeBase CreateRootState()
Returns:

StateNodeBase

The root of the element's state tree.

Overrides: ItemStateManagerFactory.CreateRootState()

Creates states for each expand direction and for the collapsed panel state.

C#
protected override StateNodeBase CreateSpecificStates()
Returns:

StateNodeBase

The direction and collapsed-state branches.

Overrides: ItemStateManagerFactory.CreateSpecificStates()