When a user is trying to login to my app, I am displaying a ContentDialog containing a few TextBlocks and a ProgressBar.
I choose ContentDialog because it is modal a
I found a solution which eliminates the code behind. Not sure if this is more of a work around. But it allows me to easily use Binding to decide when to display this modal dialog and when to hide it.
This is my XAML
I play around with the visibility of the Grid that has Canvas.ZIndex="1" using Binding and decide when to display the modal window.