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
visualControlThe node's visual control.
nodeNodeThe node being edited.
contextNodeRenderContextThe render context.
onCommitAction<string>Callback when editing is committed (Enter pressed or focus lost).
onCancelActionCallback 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
visualControlThe node's visual control.
nodeNodeThe node being edited.
contextNodeRenderContextThe render context.
IsEditing(Control)
Gets whether the node is currently in edit mode.
bool IsEditing(Control visual)
Parameters
visualControlThe node's visual control.
Returns
- bool
True if the node is in edit mode.