Window becomes inactive after DialogHost.Show() #3497
Labels
bug
dialoghost
Waiting on feedback
Additional information is needed. Stale items with this label may be closed.
Bug explanation
I'm trying to make a preloader using DialogHost (I need to display a loading indicator and lock the application while the data is being loaded)
However, when I call DialogHost.Show(), the application window loses focus
5.0.1-ci571:
bandicam.2024-03-16.22-44-17-543.mp4
if you click on a dialog, the window will become active again along with the dialog.
so they are not mutually exclusive
In my past project I used version 4.6.1 and the window did not lose focus when DialogHost was opened
I tried different versions in the current project:
4.10.0-ci317:
bandicam.2024-03-16.23-30-59-746.mp4
How can this be fixed without downgrading to an older version?
My code:
PreloaderDialog
MainWindow
Method to show preloader
Calling code
Version
5.0.1-ci571
The text was updated successfully, but these errors were encountered: