fix(dock): address minor reviewer feedback and add unit tests

This commit is contained in:
2026-03-28 13:16:04 +09:00
parent 944687848e
commit 56b84effb6
3 changed files with 85 additions and 2 deletions

View File

@@ -4,7 +4,6 @@ using System.Diagnostics;
using Ghost.Editor.Core.Controls.Internal.Docking;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Controls.Primitives;
using Microsoft.UI.Xaml.Data;
namespace Ghost.Editor.View.Controls;
@@ -47,7 +46,7 @@ public sealed partial class DockLayout : Control
}
public static readonly DependencyProperty RootProperty =
DependencyProperty.Register("Root", typeof(DockGroupNode), typeof(DockLayout), new PropertyMetadata(null, OnRootChanged));
DependencyProperty.Register(nameof(Root), typeof(DockGroupNode), typeof(DockLayout), new PropertyMetadata(null, OnRootChanged));
private static void OnRootChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{