From 750983196a1cfd69953a48db2b4d20914a5b353e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20S=CC=8Colte=CC=81s?= Date: Tue, 12 Nov 2024 20:35:47 +0100 Subject: [PATCH] Create pinned dockabled --- src/Dock.Model.Avalonia/Factory.cs | 8 +++++++- src/Dock.Model.Mvvm/Factory.cs | 8 +++++++- src/Dock.Model.ReactiveUI/Factory.cs | 10 ++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/Dock.Model.Avalonia/Factory.cs b/src/Dock.Model.Avalonia/Factory.cs index e28916f4e..193174449 100644 --- a/src/Dock.Model.Avalonia/Factory.cs +++ b/src/Dock.Model.Avalonia/Factory.cs @@ -50,7 +50,13 @@ public Factory() public override IList CreateList(params T[] items) => new AvaloniaList(items); /// - public override IRootDock CreateRootDock() => new RootDock(); + public override IRootDock CreateRootDock() => new RootDock + { + LeftPinnedDockables = CreateList(), + RightPinnedDockables = CreateList(), + TopPinnedDockables = CreateList(), + BottomPinnedDockables = CreateList() + }; /// public override IProportionalDock CreateProportionalDock() => new ProportionalDock(); diff --git a/src/Dock.Model.Mvvm/Factory.cs b/src/Dock.Model.Mvvm/Factory.cs index d1fdd51aa..cab6cac33 100644 --- a/src/Dock.Model.Mvvm/Factory.cs +++ b/src/Dock.Model.Mvvm/Factory.cs @@ -43,7 +43,13 @@ public Factory() public override IList CreateList(params T[] items) => new ObservableCollection(items); /// - public override IRootDock CreateRootDock() => new RootDock(); + public override IRootDock CreateRootDock() => new RootDock + { + LeftPinnedDockables = CreateList(), + RightPinnedDockables = CreateList(), + TopPinnedDockables = CreateList(), + BottomPinnedDockables = CreateList() + }; /// public override IProportionalDock CreateProportionalDock() => new ProportionalDock(); diff --git a/src/Dock.Model.ReactiveUI/Factory.cs b/src/Dock.Model.ReactiveUI/Factory.cs index fbd5120dc..dbead5d2f 100644 --- a/src/Dock.Model.ReactiveUI/Factory.cs +++ b/src/Dock.Model.ReactiveUI/Factory.cs @@ -43,7 +43,13 @@ public Factory() public override IList CreateList(params T[] items) => new ObservableCollection(items); /// - public override IRootDock CreateRootDock() => new RootDock(); + public override IRootDock CreateRootDock() => new RootDock + { + LeftPinnedDockables = CreateList(), + RightPinnedDockables = CreateList(), + TopPinnedDockables = CreateList(), + BottomPinnedDockables = CreateList() + }; /// public override IProportionalDock CreateProportionalDock() => new ProportionalDock(); @@ -65,4 +71,4 @@ public Factory() /// public override IRootDock CreateLayout() => CreateRootDock(); -} \ No newline at end of file +}