Class NodeState
Default implementation of INodeState using ObservableBase. Provides framework-agnostic property change notification with no external dependencies.
public class NodeState : ObservableBase, INodeState, INotifyPropertyChanged
- Inheritance
-
NodeState
- Implements
- Inherited Members
Remarks
For Avalonia applications, consider using ObservableNodeState from FlowGraph.Avalonia which uses source generators for better performance.
Properties
Height
The height of the node. Null means auto-sized based on content.
public double? Height { get; set; }
Property Value
IsCollapsed
Whether a group node is collapsed (only meaningful when IsGroup is true).
public bool IsCollapsed { get; set; }
Property Value
IsDragging
Whether this node is currently being dragged.
public bool IsDragging { get; set; }
Property Value
IsHighlighted
Whether this node is highlighted for emphasis (e.g., search results, analysis feedback). Unlike selection, highlighting is purely visual and doesn't affect operations.
public bool IsHighlighted { get; set; }
Property Value
IsSelected
Whether this node is currently selected.
public bool IsSelected { get; set; }
Property Value
IsVisible
Whether this node is visible in the canvas. Invisible nodes are not rendered but remain in the graph.
public bool IsVisible { get; set; }
Property Value
Width
The width of the node. Null means auto-sized based on content.
public double? Width { get; set; }
Property Value
X
The X coordinate of the node in canvas space.
public double X { get; set; }
Property Value
Y
The Y coordinate of the node in canvas space.
public double Y { get; set; }
Property Value
ZIndex
Z-index for rendering order. Higher values render on top. Default is CanvasElement.ZIndexNodes (300).
public int ZIndex { get; set; }
Property Value
Methods
Clone()
Creates a copy of this state.
public NodeState Clone()
Returns
CopyFrom(INodeState)
Copies values from another state instance.
public void CopyFrom(INodeState other)
Parameters
otherINodeState