canton7 / canton7/Stylet

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

Open
#374 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.1k
Forks
155
PR merge metrics
No merged PRs in 30d

Description

**Description**

When call `IoC.Get().ShowDialog` or `IoC.Get().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](https://user-images.githubusercontent.com/10143738/212863576-22772ebe-1e8b-45ea-a872-963574877144.gif)

![1](https://user-images.githubusercontent.com/10143738/213047399-b62aacd5-f66a-4fdf-8efc-7450dd3f4db3.gif)

## With system messagebox:

![1](https://user-images.githubusercontent.com/10143738/212865972-05cdbf6c-cd6d-4d85-93f3-25adf28d63d9.gif)

## 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.