Dock
This commit is contained in:
parent
b1d3ec73c9
commit
693d12b61c
35 changed files with 389 additions and 269 deletions
29
app/InkForge.Desktop/Dock/WorkspaceFactory.cs
Normal file
29
app/InkForge.Desktop/Dock/WorkspaceFactory.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue