I’ve got a Window which opens a borderless Dialog where you select some options. Once the options are set the Dialog closes and the main Window is enabled again. Not too difficult.
But due to the changed options in the option screen I need to refresh the main window and prevent changes from beeing made before the refresh.
So now I’d like to add and extra layer with a ProgressBar in the middle to notify the user: please wait, we are refreshing.
What would be the best practices around this?
You could take a look at Adorners (MSDN link) which allows you to stick a rendering surface on top of other UI Elements. That would allow your existing controls to be ignorant of the refreshing stage and allow incapsulation of the progress-visualization inside the Adorner and the chunk of code that is required to show/hide the Adorner layer