MessageBox.Avalonia icon indicating copy to clipboard operation
MessageBox.Avalonia copied to clipboard

ShowDialog() without owner

Open TopBaJLbD opened this issue 4 years ago • 3 comments

Is it possible to use this library for any lifetime type of the application or it should be used only for desktop? I think, in case of using IClassicDesktopStyleApplicationLifetime we can use Windows property to get an active window and use it as a dialog owner.

TopBaJLbD avatar Mar 13 '22 10:03 TopBaJLbD

If there is no owner available, it could call Show instead of ShowDialog.

This could allow displaying a message before the application is started or after it is closed.

mysteryx93 avatar Aug 30 '22 14:08 mysteryx93

So, my idea was to create a default implementation without the owner. In this case, we can use a currently active window as an owner. Is it a good practice to do it with other application lifetimes?

TopBaJLbD avatar Sep 15 '22 21:09 TopBaJLbD

I think what other application lifetimes doesn't allow to show dialogs via windows at all. Any environment with SingleView (such as mobiles and WASM) doesn't allow to create additional windows and msbox doesn't work there.

SKProCH avatar Sep 16 '22 10:09 SKProCH