0
votes

I'm making a Windows phone 8 app and I have to use longlistselector to display items as list and grid. I have a "update" button. It can reload item list (delete all existing items and then load others (new items))

My problem is: If I tap update button when Longlistselector is displaying items on phone's screen, it delete all existing items and it continues load the rest items and it also load new (updated) items. The list become a mess.

I find no way to stop or block longlist selector from loading items, so I post my question to here, and hope someone can help me.

Thanks you guys very much!!!

1

1 Answers

0
votes

You could have a boolean that is set to true when data-loading begins and set to false when data loading is complete. Then have the code that reacts to the button press only work if the boolean is false, when data isn't being loaded in.