Table of Contents

Interface IDataNodeRenderer

Namespace
FlowGraph.Avalonia.Rendering.NodeRenderers
Assembly
FlowGraph.Avalonia.dll

Extended node renderer that supports data binding to port values. Implement this for nodes with interactive controls (sliders, color pickers, etc.).

public interface IDataNodeRenderer : INodeRenderer
Inherited Members

Methods

CreateDataBoundVisual(Node, INodeProcessor?, NodeRenderContext)

Creates the visual with data binding context.

Control CreateDataBoundVisual(Node node, INodeProcessor? processor, NodeRenderContext context)

Parameters

node Node

The node to render.

processor INodeProcessor

The node's data processor (may be null for display-only nodes).

context NodeRenderContext

The render context.

Returns

Control

A control bound to the node's data.

OnProcessorAttached(Control, INodeProcessor)

Called when the processor is attached to this renderer. Use this to set up event subscriptions.

void OnProcessorAttached(Control visual, INodeProcessor processor)

Parameters

visual Control

The node's visual control.

processor INodeProcessor

The node's processor.

OnProcessorDetached(Control, INodeProcessor)

Called when the processor is detached from this renderer. Use this to clean up event subscriptions.

void OnProcessorDetached(Control visual, INodeProcessor processor)

Parameters

visual Control

The node's visual control.

processor INodeProcessor

The node's processor.

UpdateFromPortValues(Control, INodeProcessor)

Updates the visual when port values change. Called when connected input values change.

void UpdateFromPortValues(Control visual, INodeProcessor processor)

Parameters

visual Control

The node's visual control.

processor INodeProcessor

The node's processor.