Skip to content

Can a non-modal popup specify a parent? #196

Description

@Ruikoto

After I upgraded from Avalonia 10 to 11, I found that in the new IMsBox<T> interface, the non-modal method Task<T> ShowWindowAsync() does not support specifying a parent control, whereas the other two methods that do support specifying a parent control are both modal dialogs. I want my multi-window application to display a non-modal dialog in front of a specific window. How can I achieve this?

namespace MsBox.Avalonia.Base
{
  public interface IMsBox<T>
  {
    Task<T> ShowAsync();

    Task<T> ShowWindowAsync();

    Task<T> ShowWindowDialogAsync(Window owner);

    Task<T> ShowAsPopupAsync(ContentControl owner);

    Task<T> ShowAsPopupAsync(Window owner);

    string InputValue { get; }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions