Skip to content

ShowMessageBox freeze primary window when show a message box on secondary windows #374

@VShawn

Description

@VShawn

Description

When call IoC.Get<IWindowManager>().ShowDialog or IoC.Get<IWindowManager>().ShowMessageBox on secondary window, the primary window will be freezen.

With ShowDialog provide by the runtime, primary window works fine.

To Reproduce
Code to reproduce the bug, which someone else can run.

Version Info

  • Stylet version: 1.3.6
  • Runtime version: .Net6

Additional Info

With stylet messagebox:

1

1

With system messagebox:

1

Here is the code related:

https://github.com/1Remote/PRemoteM/blob/dev_net6/Ui/View/Host/TabWindowViewModel.cs#L236-L237

https://github.com/1Remote/PRemoteM/blob/58805bd0bb59757e9016a89cdfd14300a64278b7/Ui/Utils/MessageBoxHelper.cs#L26-L33

And you can get the exe file from:
https://github.com/1Remote/PRemoteM/releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions