Table of Contents

Class NodeState

Namespace
FlowGraph.Core.Models
Assembly
FlowGraph.Core.dll

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

double?

IsCollapsed

Whether a group node is collapsed (only meaningful when IsGroup is true).

public bool IsCollapsed { get; set; }

Property Value

bool

IsDragging

Whether this node is currently being dragged.

public bool IsDragging { get; set; }

Property Value

bool

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

bool

IsSelected

Whether this node is currently selected.

public bool IsSelected { get; set; }

Property Value

bool

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

bool

Width

The width of the node. Null means auto-sized based on content.

public double? Width { get; set; }

Property Value

double?

X

The X coordinate of the node in canvas space.

public double X { get; set; }

Property Value

double

Y

The Y coordinate of the node in canvas space.

public double Y { get; set; }

Property Value

double

ZIndex

Z-index for rendering order. Higher values render on top. Default is CanvasElement.ZIndexNodes (300).

public int ZIndex { get; set; }

Property Value

int

Methods

Clone()

Creates a copy of this state.

public NodeState Clone()

Returns

NodeState

CopyFrom(INodeState)

Copies values from another state instance.

public void CopyFrom(INodeState other)

Parameters

other INodeState