I need to create a "please wait" window at the start up of my application, start animation a开发者_JS百科nd at the lifetime of app change visibility. I don`t want create explicitly new thread (Maybe ThreadPool or BackgroundWorker). Any ideas?
WPF has a very nice splash screen class exactly for that: http://www.codeproject.com/Articles/36418/WPF-Splash-Screen.aspx
Here is the quick steps:
- Add the image file to the WPF Application project. For more information, see How to: Add Existing Items to a Project.
- In Solution Explorer, select the image.
- Add the image file to the WPF Application project. For more information, see How to: Add Existing Items to a Project.
- In the Properties window, click the drop-down arrow for the Build Action property. Select SplashScreen from the drop-down list
(source here: WPF SplashScreen implementing)
精彩评论