Reputation: 2450
How i can implement a default loading image to my image control while the time of image loading. ie need to display the loading image initially and after the actual image loads i need to set that image as my image source. I windows phone i implemented the same with the help of LowProfileImageLoader class. But in windows 8 how i can implement the same.
Upvotes: 0
Views: 541
Reputation: 45117
It's fairly easy to do this in a Windows Store app by using the async functionality. You would set your image source to your loading image (maybe using the ms-appx protocol and loading it from your package) while you use a HttpClient to download the larger image for example. Here is a sample on how to use HttpClient asynchronously.
Per comment: You can use the ProgressRing class and change to the image when you get the ImageOpened event. See this example.
Upvotes: 1