What can you do if you would like to display a modal / blocking dialog in WPF? By default, there is the possibility to use the Window.ShowDialog() method. This has the disadvantage that a completely new “Windows”-Window will be created which is not part of our main application window (which again has several disadvantages that I don’t want to discuss here). I would like to present an alternative solution:
As shown in the image beside, we would like to have a half transparent overlay with some kind of content (here, just for example, we use a simple text message, but we could also display other controls). Mehr...