Table of Contents

Interface IEditableNodeRenderer

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

Interface for node renderers that support inline label editing.

public interface IEditableNodeRenderer : INodeRenderer
Inherited Members

Methods

BeginEdit(Control, Node, NodeRenderContext, Action<string>, Action)

Enters edit mode for the node's label.

void BeginEdit(Control visual, Node node, NodeRenderContext context, Action<string> onCommit, Action onCancel)

Parameters

visual Control

The node's visual control.

node Node

The node being edited.

context NodeRenderContext

The render context.

onCommit Action<string>

Callback when editing is committed (Enter pressed or focus lost).

onCancel Action

Callback when editing is cancelled (Escape pressed).

EndEdit(Control, Node, NodeRenderContext)

Exits edit mode and returns to display mode.

void EndEdit(Control visual, Node node, NodeRenderContext context)

Parameters

visual Control

The node's visual control.

node Node

The node being edited.

context NodeRenderContext

The render context.

IsEditing(Control)

Gets whether the node is currently in edit mode.

bool IsEditing(Control visual)

Parameters

visual Control

The node's visual control.

Returns

bool

True if the node is in edit mode.