Browse Source

Merge pull request #7622 from pr8x/child-window-property2

Exposing `Window.ChildWindows` collection
release/0.10.13
Dan Walmsley 4 years ago
parent
commit
bfff7d9e01
  1. 5
      src/Avalonia.Controls/Window.cs

5
src/Avalonia.Controls/Window.cs

@ -255,6 +255,11 @@ namespace Avalonia.Controls
[CanBeNull] [CanBeNull]
public new IWindowImpl PlatformImpl => (IWindowImpl)base.PlatformImpl; 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> /// <summary>
/// Gets or sets a value indicating how the window will size itself to fit its content. /// Gets or sets a value indicating how the window will size itself to fit its content.
/// </summary> /// </summary>

Loading…
Cancel
Save