diff --git a/src/Dock.Avalonia/Controls/DocumentControl.axaml b/src/Dock.Avalonia/Controls/DocumentControl.axaml
index 7ff353943..870a124dd 100644
--- a/src/Dock.Avalonia/Controls/DocumentControl.axaml
+++ b/src/Dock.Avalonia/Controls/DocumentControl.axaml
@@ -44,7 +44,11 @@
+ VerticalAlignment="Stretch">
+
+
+
+
diff --git a/src/Dock.Avalonia/Controls/HostWindow.axaml.cs b/src/Dock.Avalonia/Controls/HostWindow.axaml.cs
index 1b86c50a9..dfca3875c 100644
--- a/src/Dock.Avalonia/Controls/HostWindow.axaml.cs
+++ b/src/Dock.Avalonia/Controls/HostWindow.axaml.cs
@@ -267,7 +267,7 @@ public void Present(bool isDialog)
Window.Factory?.OnWindowOpened(Window);
}
- ShowDialog(null); // FIXME: Set correct parent window.
+ ShowDialog(null!); // FIXME: Set correct parent window.
}
}
else
diff --git a/src/Dock.Avalonia/Controls/Recycling/ControlRecycling.cs b/src/Dock.Avalonia/Controls/Recycling/ControlRecycling.cs
new file mode 100644
index 000000000..3d875ebed
--- /dev/null
+++ b/src/Dock.Avalonia/Controls/Recycling/ControlRecycling.cs
@@ -0,0 +1,67 @@
+using System;
+using System.Collections.Generic;
+using Avalonia.Controls;
+using Avalonia.Controls.Templates;
+
+namespace Dock.Avalonia.Controls.Recycling;
+
+///
+///
+///
+public class ControlRecycling
+{
+ private readonly Dictionary