Class ItemStateManager
Manages visual states for RadControl items using a hierarchical state node system.
Inherited Members
Namespace: Telerik.WinControls.Styles
Assembly: Telerik.WinControls.dll
Syntax
public class ItemStateManager : ItemStateManagerBase
Constructors
ItemStateManager(StateNodeBase)
Initializes a new instance of the ItemStateManager class with the specified root state.
Declaration
public ItemStateManager(StateNodeBase rootState)
Parameters
StateNodeBase
rootState
The root state node that defines the state hierarchy. |
Properties
RootState
Gets the root state node of the state hierarchy.
Declaration
public StateNodeBase RootState { get; }
Property Value
StateNodeBase
The root state node that manages all child states. |
Methods
AttachToItemOverride(StateManagerAttachmentData, RadObject)
Attaches the state manager to the specified item.
Declaration
protected override void AttachToItemOverride(StateManagerAttachmentData attachmentData, RadObject item)
Parameters
StateManagerAttachmentData
attachmentData
The attachment data containing state information. |
RadObject
item
The RadObject item to attach to. |
Overrides
GetAvailableStates(String)
Gets the available states for the specified theme role.
Declaration
public override StateDescriptionNode GetAvailableStates(string themeRoleName)
Parameters
System.String
themeRoleName
The name of the theme role. |
Returns
StateDescriptionNode
A StateDescriptionNode containing available states. |
Overrides
ItemStateChanged(RadObject, RadPropertyChangedEventArgs)
Handles item state changes and triggers state re-evaluation.
Declaration
public override void ItemStateChanged(RadObject senderItem, RadPropertyChangedEventArgs changeArgs)
Parameters
RadObject
senderItem
The item that changed state. |
RadPropertyChangedEventArgs
changeArgs
The property change event arguments. |
Overrides
StateInvalidated(RadObject, StateNodeBase)
Handles state invalidation for the specified item and updates its visual state.
Declaration
public virtual void StateInvalidated(RadObject item, StateNodeBase elementStateBase)
Parameters
RadObject
item
The item whose state was invalidated. |
StateNodeBase
elementStateBase
The state node that triggered the invalidation. |