0

I create an animation GIF image and added to my project as Splash screen.

When I run my application the splash screen appeared BUT the animation does not work !

Any suggestion?

rene
  • 41,474
  • 78
  • 114
  • 152
Abdulsalam Elsharif
  • 4,773
  • 7
  • 32
  • 66
  • WPF SplashScreen supports only static images. If you wish to use dynamic splash screen you have to emulate it with ordinary window. You can design it to be borderless (WindowStyle="None") and place gif image there (look up http://stackoverflow.com/questions/210922/how-do-i-get-an-animated-gif-to-work-in-wpf for how to do so) – Aloraman Jan 11 '17 at 18:28
  • But the normal window has a delay on startup – Abdulsalam Elsharif Jan 11 '17 at 22:35
  • In my practice the delay is negligible if you keep overhead at minimum, e.g. create splash window at very beginning of Application.Startup handling, have little or no dependencies (minimum third-party libraries, no IoC, all controls/styles are placed in the same assembly... for splash window and content, that is), therefore it is initialized and shown almost immediately – Aloraman Jan 13 '17 at 17:13
  • Maybe this helps too: https://stackoverflow.com/questions/50664221/splash-screen-with-animated-gif-is-not-animating-in-wpf-c-sharp – Beachwalker Jan 22 '21 at 14:50

0 Answers0