Skip to content

Commit

Permalink
Merge pull request AvaloniaUI#7622 from pr8x/child-window-property2
Browse files Browse the repository at this point in the history
Exposing `Window.ChildWindows` collection
  • Loading branch information
danwalmsley committed Feb 21, 2022
1 parent da3004d commit bfff7d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Avalonia.Controls/Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ public Window(IWindowImpl impl)
[CanBeNull]
public new IWindowImpl PlatformImpl => (IWindowImpl)base.PlatformImpl;

/// <summary>
/// Gets a collection of child windows owned by this window.
/// </summary>
public IReadOnlyList<Window> OwnedWindows => _children.Select(x => x.child).ToList();

/// <summary>
/// Gets or sets a value indicating how the window will size itself to fit its content.
/// </summary>
Expand Down

0 comments on commit bfff7d9

Please sign in to comment.