Table of Contents

Class RadioButtonNodeRenderer

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

Renders a radio button group node using the white headered base. Value persisted in Node.Data as RadioButtonData.

public class RadioButtonNodeRenderer : WhiteHeaderedNodeRendererBase, IEditableNodeRenderer, IDataNodeRenderer, INodeRenderer
Inheritance
RadioButtonNodeRenderer
Implements
Inherited Members

Properties

Options

public IList<string> Options { get; set; }

Property Value

IList<string>

Methods

CreateContent(Node, INodeProcessor?, NodeRenderContext)

Creates the content area control(s).

protected override Control CreateContent(Node node, INodeProcessor? processor, NodeRenderContext context)

Parameters

node Node
processor INodeProcessor
context NodeRenderContext

Returns

Control

GetDefaultLabel()

Gets the default label to display when the node has no label set.

protected override string GetDefaultLabel()

Returns

string

GetHeight(Node, FlowCanvasSettings)

Gets the default height of the node in canvas units (before scaling). Return null to use the default height from settings.

public override double? GetHeight(Node node, FlowCanvasSettings settings)

Parameters

node Node
settings FlowCanvasSettings

Returns

double?

GetWidth(Node, FlowCanvasSettings)

Gets the default width of the node in canvas units (before scaling). Return null to use the default width from settings.

public override double? GetWidth(Node node, FlowCanvasSettings settings)

Parameters

node Node
settings FlowCanvasSettings

Returns

double?

OnProcessorAttached(Control, INodeProcessor)

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

public override void OnProcessorAttached(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.

public override void UpdateFromPortValues(Control visual, INodeProcessor processor)

Parameters

visual Control

The node's visual control.

processor INodeProcessor

The node's processor.