I have a requirement for creating pseudo-modal dialogs in WPF. That is, for some specific (technical) reasons, software is not allowed to create modal dialogs. Instead, the user should interact with the "built-in" modal dialogs when necessary.
I found a solution that works well with MVVM and takes care of the dispatcher and the synchronous nature of modal dialogs. However, I ran into the problem of disabling user input in the background GUI. Unfortunately, setting all controls to IsEnabled = false is unacceptable, since it changes the visual state of the background controls (grayscale → poor readability).
Is there a direct way to turn off user input (including focus and keyboard) in the background without changing the visual state?
Thank you for your help!
source
share