Vixen
02b45cc4
csharp
public sealed class DockPanel

One dockable panel: a title, an id, and whatever the application puts in it.

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

Remarks

⚠ A panel is created once and moved thereafter, never rebuilt. That is what UiDocument.Reparent exists for and it is the whole reason docking is hard: a panel torn out of one group and dropped into another has to keep its scroll position, its selection, its focus and whatever the user has half-typed into it. A host that rebuilt the panel would pass every structural test and lose the user's work.

Fields and properties (7)

  • 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 string Id

    What identifies it in a saved layout.

  • public string? Title
  • public bool CanClose
  • public static readonly UiPropertyKey TitleProperty

    Identity for Title.

  • public static readonly UiPropertyKey CanCloseProperty

    Identity for CanClose.

Methods (2)

  • public void ClearTitle()

    Unsets Title, so it takes its default or its ancestor's value again.

  • public void ClearCanClose()

    Unsets CanClose, so it takes its default or its ancestor's value again.

Used by (23)

  • ShellHelloUi
  • DockingHostVixen.Ui.Controls.Advanced
  • DockingTestsVixen.Ui.Controls.Advanced.Tests
  • DockingWindowTestsVixen.Ui.Controls.Advanced.Tests
  • BuildSettingsTestsVixen.Editor.App.Tests
  • ChromeFixtureVixen.Editor.Ui.Tests
  • DiagnosticsModuleVixen.Editor.Diagnostics
  • DiagnosticsPanelTestsVixen.Editor.App.Tests
  • DockingWorkspaceVixen.Editor.Ui
  • DropIntoSceneTestsVixen.Editor.App.Tests
  • EditorAffordanceTestsVixen.Editor.App.Tests
  • EditorApplicationVixen.Editor.App
  • EditorModeTestsVixen.Editor.App.Tests
  • EditorSessionVixen.Editor.Testing
  • EditorShellVixen.Editor.Ui
  • GridViewTestsVixen.Editor.App.Tests
  • MilestoneE3TestsVixen.Editor.App.Tests
  • PanelBehaviourTestsVixen.Editor.App.Tests
  • PanelDescriptorVixen.Editor.Ui
  • PluginContextVixen.Editor.Plugin
  • ScriptsModuleVixen.Editor.Scripts
  • SelectionTestsVixen.Editor.App.Tests
  • TerrainModuleVixen.Editor.Terrain