Class StateNodeWithCondition
Represents a state node that evaluates a condition to determine which state to apply. Based on the condition result, it can transition to different linked state nodes or apply its own state.
Inherited Members
Namespace: Telerik.WinControls.Styles
Assembly: Telerik.WinControls.dll
Syntax
public class StateNodeWithCondition : StateNodeBase
Constructors
StateNodeWithCondition(String)
Initializes a new instance of the StateNodeWithCondition class with the specified name.
Declaration
public StateNodeWithCondition(string name)
Parameters
System.String
name
The name of the state node. |
StateNodeWithCondition(String, Condition)
Initializes a new instance of the StateNodeWithCondition class with the specified name and condition.
Declaration
public StateNodeWithCondition(string name, Condition condition)
Parameters
System.String
name
The name of the state node. |
Condition
condition
The condition to evaluate for state determination. |
Properties
Condition
Gets or sets the condition used to evaluate which state to apply.
Declaration
public Condition Condition { get; set; }
Property Value
Condition
The condition for state evaluation. |
Methods
AddAvailableStates(ICollection<StateDescriptionNode>, StateDescriptionNode)
Adds available states to the collection based on the true and false state links.
Declaration
public override void AddAvailableStates(ICollection<StateDescriptionNode> newNodes, StateDescriptionNode node)
Parameters
System.Collections.Generic.ICollection<StateDescriptionNode>
newNodes
The collection to add new state description nodes to. |
StateDescriptionNode
node
The current state description node being processed. |
Overrides
AttachToElement(RadObject, StateManagerAttachmentData)
Attaches this conditional state node to the specified element and registers event handlers for affected properties.
Declaration
public override void AttachToElement(RadObject item, StateManagerAttachmentData attachmentData)
Parameters
RadObject
item
The RadObject to attach to. |
StateManagerAttachmentData
attachmentData
The attachment data for state management. |
Overrides
EvaluateState(RadObject)
Evaluates the state for the specified target item based on the condition result.
Declaration
public override ICollection<string> EvaluateState(RadObject targetItem)
Parameters
RadObject
targetItem
The RadObject to evaluate state for. |
Returns
System.Collections.Generic.ICollection<System.String>
A collection of state names based on condition evaluation and linked states. |