Vixen
02b45cc4
csharp
public sealed class NodeItem

One node, as an element.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Rebound rather than rebuilt, the same bargain TreeRow makes: the pool is the size of what fits on screen, and panning a graph of ten thousand nodes rebinds thirty elements rather than creating and destroying thousands.

Fields and properties (9)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public GraphNode? Node

    The node it is showing, or null if it is parked.

  • public UiElement Header

    The title bar.

  • public UiElement Body

    The row holding the two columns of ports.

  • public UiElement InputColumn

    The left column.

  • public UiElement OutputColumn

    The right column.

  • public IReadOnlyList<NodePortView> Inputs

    The port elements on the left, including the parked ones.

  • public IReadOnlyList<NodePortView> Outputs

    Ditto, on the right.

Methods (2)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public NodePortView? ViewOf(GraphPort port)

    The element showing a port, if this item has one for it.

Used by (5)

  • NodeCanvasVixen.Ui.Controls.Advanced
  • NodeCanvasTestsVixen.Ui.Controls.Advanced.Tests
  • PortValueTestsVixen.Editor.NodeGraph.Tests
  • ViewFixtureVixen.Editor.NodeGraph.Tests
  • ViewTestsVixen.Editor.NodeGraph.Tests