From 563f313eb52ae5b5a4d74b08750c10c8cd231755 Mon Sep 17 00:00:00 2001 From: Luis von der Eltz Date: Wed, 16 Feb 2022 12:44:43 +0100 Subject: [PATCH 1/2] child window collection --- src/Avalonia.Controls/Window.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index a5f48bd4a524..4c4f681917b5 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -255,6 +255,11 @@ public Window(IWindowImpl impl) /// public new IWindowImpl? PlatformImpl => (IWindowImpl?)base.PlatformImpl; + /// + /// Gets a collection of child windows owned by this window. + /// + public IReadOnlyList ChildWindows => _children.Select(x => x.child).ToList(); + /// /// Gets or sets a value indicating how the window will size itself to fit its content. /// From df360e164c1159e0052a6345748b2d6096a44eee Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Mon, 21 Feb 2022 20:54:02 +0000 Subject: [PATCH 2/2] rename property. --- src/Avalonia.Controls/Window.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/Window.cs b/src/Avalonia.Controls/Window.cs index 4c4f681917b5..2e31e1095d5c 100644 --- a/src/Avalonia.Controls/Window.cs +++ b/src/Avalonia.Controls/Window.cs @@ -258,7 +258,7 @@ public Window(IWindowImpl impl) /// /// Gets a collection of child windows owned by this window. /// - public IReadOnlyList ChildWindows => _children.Select(x => x.child).ToList(); + public IReadOnlyList OwnedWindows => _children.Select(x => x.child).ToList(); /// /// Gets or sets a value indicating how the window will size itself to fit its content.