Reputation: 6142
I'm looking for a good example on how to have an image loading animation in my metro xaml app. I have an image control that has a source set through mvvm binding directly to an URL.
So I know there is the ImageOpened and the ImageFailed events to stop any animation, but when does the 'download' start to start it? Because the second time the app starts the image is still cached and the ImageOpened event isn't fired anymore.
Any tips/tricks?
Upvotes: 1
Views: 1018
Reputation: 5225
Have you looked at the DownloadProgress event? It looks like the event args contain a Progress value between 0-100 that you could use to determine if a new download is starting.
Also, there is a generic XAML animation library sample in case that helps.
Upvotes: 1