This commit is contained in:
Jöran Malek 2024-02-26 18:08:18 +01:00
parent b1d3ec73c9
commit 693d12b61c
35 changed files with 389 additions and 269 deletions

View file

@ -0,0 +1,29 @@
using Dock.Model.Controls;
using Dock.Model.Core;
using Dock.Model.ReactiveUI;
namespace InkForge.Desktop.Dock;
public class WorkspaceFactory : Factory
{
public override IRootDock CreateLayout()
{
var documents = CreateDocumentDock();
documents.Id = "Documents";
documents.Title = "Documents";
var root = CreateRootDock();
root.VisibleDockables = [documents];
root.ActiveDockable = documents;
root.DefaultDockable = documents;
DockableLocator = new Dictionary<string, Func<IDockable?>>
{
["Root"] = () => root,
["Documents"] = () => documents,
};
return root;
}
}