Vixen
02b45cc4
csharp
public sealed class TreeRow

One realised row of a TreeView.

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

Remarks

⚠ Rebound rather than rebuilt. Scrolling a tree recycles these — the row that leaves the top is the row that appears at the bottom, with a different node in it — so a scroll costs a handful of property writes rather than a tear-down and a rebuild of everything on screen. It is also why the row holds its node rather than the other way round.

Fields and properties (7)

  • protected override string TagName

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

  • public TreeNode? Node

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

  • public Icon Chevron

    The chevron, blank — but still occupying its column — for a node with no children.

  • public Icon Glyph

    The row's own glyph, from Icon.

  • public UiElement Indent

    The spacer that indents it by its depth.

  • public UiElement Label

    The text.

  • public TextBox? Editor

    The field shown while the row is being renamed.

Methods (2)

  • protected override void OnCreated()

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

  • protected override void OnDraw(DrawContext context)

Used by (8)

  • TreeViewVixen.Ui.Controls.Advanced
  • TreeViewTestsVixen.Ui.Controls.Advanced.Tests
  • DropIntoSceneTestsVixen.Editor.App.Tests
  • EditorAffordanceTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • EditorSessionVixen.Editor.Testing
  • OutlinerColumnTestsVixen.Editor.App.Tests
  • SelectionTestsVixen.Editor.App.Tests