tags:

views:

468

answers:

1

I'd like to add a "Loading"-image on the top of my ListView while all items are loading, if there are a lot of items being loaded, I still want a nice user experience.

So therefore I want a floating Image ( Animated GIF ? ) on top of my ListView.

How would one solve this and once you have the floating image or control, how do you make the GIF animated?

+7  A: 
Drew Noakes
IS the "Binding Path=IsLoading" connected to the ListView, of not how do you set it off?
Filip Ekberg
@Filip, I've added a clarification to my answer.
Drew Noakes
Thank you! I am still a little confused on how you "bind" it to your view-model though, could you provide some information about that?
Filip Ekberg
@Filip, many articles have been written about MVVM that will give you a better overview than I would in a comment here. Search for 'MVVM' on Google. Josh Smith has some great articles, and here's one from MSDN: http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
Drew Noakes
If you don't want to use MVVM, just create a property on the user control. Note that you will have to make the binding expression have a relative source and search for your user control as an ancestor.
Drew Noakes
Yeah I figured it out, just created a Binding Property and bound it to the "element" and then said "use my property!" :)Thanks for the help
Filip Ekberg