Click here to Skip to main content
16,017,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my application ,there is some time consuming process, so I want to show a dialogue or animation and close it once the process is over.

could anyone provide me a useful tip or links about how to do that?

thanks in advance!
Posted

have a look at this useful article - WPF Multithreading: Using the BackgroundWorker and Reporting the Progress to the UI.[^].
You basically need to do something similar when the UI is doing background processing for a long time.
 
Share this answer
 
Comments
Alimjan Yasin 12-Aug-11 5:27am    
thanks, looks like that is what I am looking for.
Abhinav S 12-Aug-11 8:10am    
You are welcome.
It works the same as in winforms, show a modeless dialog, set the cursor to a wait cursor, close the dialog when you're done. A progress bar is optional. You can set up a WPF animation to run if you want to, but WPF has nothing built in that I know of to show animated GIFs. Of course, you can show a wmv in the media player control, if you like, but that seems like overkill to me.
 
Share this answer
 
Comments
Alimjan Yasin 10-Aug-11 1:07am    
how can I tell the dialog that my process is done?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900