开发者

"Please wait" Windows in WPF

开发者 https://www.devze.com 2023-02-28 01:50 出处:网络
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

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:

  1. Add the image file to the WPF Application project. For more information, see How to: Add Existing Items to a Project.
  2. In Solution Explorer, select the image.
  3. Add the image file to the WPF Application project. For more information, see How to: Add Existing Items to a Project.
  4. 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)

0

精彩评论

暂无评论...
验证码 换一张
取 消