How can I display a Message box or some other similar notice show while the application is busy in the background, similar to this mockup:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a Busy Indicator in the WPF Extended Toolkit which I’ve used quite a lot:
The toolkit is conveniently available through NuGet which makes it really easy to add it as a reference to your project. I’ve personally used it (along with many of the other useful controls in that toolkit) in almost all of my recent WPF projects.
To use it, surround your controls in the XAML code with the busy indicator:
Then you just have to set the
IsBusyproperty totruewhen you want the popup to appear and false when it should be hidden. In a proper MVVM architecture, you would typically databind the property in XAML to a property in your viewmodel which you then set to true/false accordingly:But if you aren’t using MVVM, you can of course set it manually from your code behind, typically in the button click handler:
Give the control a name to be able to refer to it from code:
And then, in your xaml.cs file: