diff --git a/src/Avalonia.Controls.Recycling/ControlRecycling.cs b/src/Avalonia.Controls.Recycling/ControlRecycling.cs index 3ab13c5a..fd328200 100644 --- a/src/Avalonia.Controls.Recycling/ControlRecycling.cs +++ b/src/Avalonia.Controls.Recycling/ControlRecycling.cs @@ -73,9 +73,6 @@ public void Add(object data, object control) if (TryToUseIdAsKey && data is IControlRecyclingIdProvider idProvider) { -#if DEBUG - Console.WriteLine($"Build: {data}, Id='{idProvider.GetControlRecyclingId()}'"); -#endif if (!string.IsNullOrWhiteSpace(idProvider.GetControlRecyclingId())) { key = idProvider.GetControlRecyclingId(); @@ -84,9 +81,6 @@ public void Add(object data, object control) if (TryGetValue(key, out var control)) { -#if DEBUG - Console.WriteLine($"[Cached] {key}, {control}"); -#endif return control; } @@ -99,9 +93,7 @@ public void Add(object data, object control) } Add(key, control); -#if DEBUG - Console.WriteLine($"[Added] {key}, {control}"); -#endif + return control; } diff --git a/src/Dock.Avalonia/Controls/ProportionalDockControl.axaml b/src/Dock.Avalonia/Controls/ProportionalDockControl.axaml index 32976b69..a814f9ba 100644 --- a/src/Dock.Avalonia/Controls/ProportionalDockControl.axaml +++ b/src/Dock.Avalonia/Controls/ProportionalDockControl.axaml @@ -1,7 +1,8 @@ + xmlns:core="using:Dock.Model.Core" + xmlns:dmc="using:Dock.Model.Controls"> @@ -11,13 +12,16 @@ - +