Hi guys, I want to add an animated taskbar icon to my WPF project. I figured I would just use the Icon property, but I'm fairly new to WPF, and I dont know how to do it. In Winforms I would create a thread like this:
Private Sub AniIcon() Do 'I split a gif into its individual frames and then load them sequentially Me.Icon = Image.FromFile("Path\to\split\GIF\here") System.Threading.Thread.Sleep(250) Loop End Sub
But I can't find a Window.Dispatcher to use this approach in WPF. I also see something about "BeginAnimation" in the Icon Property?
So, what is the best way to do this?