Vixen
dd8b0a81
csharp
public sealed class NodeCommentView

A sticky note, as an element.

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

Remarks

⚠ The label and the field both exist and one of them is hidden. A note is pooled and rebound as the graph is reprojected, so building a field when editing starts would leave one behind per note ever edited — removal is final in this framework, which is why every pooled thing here parks rather than goes.

Fields and properties (6)

  • 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 GraphComment? Comment

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

  • public UiElement Body

    Where the text goes when it is being read.

  • public TextArea Editor

    Where it goes when it is being written.

  • public bool IsEditing

    Whether the caret is in it.

Methods (1)

  • protected override void OnCreated()

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

Used by (2)

  • NodeGraphViewVixen.Editor.NodeGraph
  • ViewTestsVixen.Editor.NodeGraph.Tests