PanelDockWindowsclass
Drags dock panels between desktop windows with panel-drawn chrome.
Constructors1
Showing 1 constructors
public PanelDockWindows(Sandbox.UI.DockHost main)
Enables desktop tab dragging for this host and its floating windows.
| Parameter | Type | Description |
|---|---|---|
| main | DockHost | — |
No results match this filter.
Methods4
Showing 4 methods
public virtual sealed void Dispose()
Unhooks dragging and returns floating content if the main host survives.
void—public void DockAll()
Returns all floating registrations, including closed panels, to the main host.
void—public bool Float(string id)
Explicitly opens a registered panel in its own floating window. Returns false when unavailable or during a drag. The same content instance is retained; a lone floating panel is simply focused.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
bool—public bool RestoreState(string json)
Restores a workspace using the existing content instances. Invalid data leaves the workspace untouched. Returns false during a drag/layout operation or if windows cannot be created. Desktop windows require the main host to belong to an editor PanelWindow. This saves layout, not the contents of each panel.
| Parameter | Type | Description |
|---|---|---|
| json | string | — |
bool—No results match this filter.
Properties2
Showing 2 properties
public System.Action`1<Sandbox.UI.RootPanel> Editor.PanelDockWindows.ConfigureWindow { get; set; }
Styles each floating root before content is transferred.
public string Editor.PanelDockWindows.State { get; set; }
Saves the main layout and every floating window, including closed registrations, tab selection, splits, desktop position and UI size. Does not move panels. Call between drag/layout operations.
string—No results match this filter.