fix(dock): decouple DockLayout from window creation and remove redundant state

This commit is contained in:
2026-03-28 17:08:24 +09:00
parent 65a335fc1a
commit cda3b292b5
5 changed files with 32 additions and 12 deletions

View File

@@ -10,8 +10,14 @@ public sealed class TabTornOffEventArgs : EventArgs
/// </summary>
public object TabContent { get; }
public TabTornOffEventArgs(object tabContent)
/// <summary>
/// Gets the source node the tab is being torn off from.
/// </summary>
public object SourceNode { get; }
public TabTornOffEventArgs(object tabContent, object sourceNode)
{
TabContent = tabContent;
SourceNode = sourceNode;
}
}