Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ruikoto opened this issue Oct 17, 2024 · 0 comments
Open

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

Ruikoto opened this issue Oct 17, 2024 · 0 comments

Comments

@Ruikoto
Copy link

Ruikoto commented Oct 17, 2024

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; }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant