Vixen
02b45cc4
csharp
public static class MarkupInspector

Registering a .vxml component as the inspector for a type.

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

Remarks

Doc 36 § P4's other half. MarkupBinding joins a built tree to what it is editing; this is what builds the tree, and what puts it back together after a dotnet watch has replaced the Build body the markup compiled to.

⚠ Mounted through the reload host rather than built directly, and that is the whole difference between "markup works" and "markup is the authoring path". A declarative layout you have to restart the editor to see is a slower way to write C#. What makes it worth adopting is the loop: change the file, the panel is different a second later.

⚠ A reload throws away the elements, so the binding has to be made again. ReloadComponents re-runs Build on the same component object — the fields survive because the object does and the elements do not, which is HotReloadHost's stated bargain. Every element a binding-path was joined to is therefore gone, and a panel that did not re-bind would come back from a reload showing rows that edit nothing.

Methods (1)

Used by (2)

  • BrushInspectorMarkupTestsVixen.Editor.Terrain.Tests
  • TerrainModuleVixen.Editor.Terrain