Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • Thanks, This works. UI is not held no more. But when this runs a uNauthorizedAccessException is thrown with additional information that includes Invalid cross-thread access message.. What should i do? Commented Aug 2, 2014 at 14:51
  • Hmm, are you accessing any UI elements inside this method? Commented Aug 2, 2014 at 14:54
  • You cant set the ItemSource inside a threadpool thread. Use Deployment.Current.Dispatcher.Invoke and set itemsource inside it Commented Aug 2, 2014 at 15:25
  • Using Dispatcher.BeginInvoke doesn't solve my problem. It still holds the UI till the lists are populated. Commented Aug 2, 2014 at 15:52
  • 1
    Thanks a lot. I will look in to it. :) I'll comment if i need help. Thanks Commented Aug 2, 2014 at 17:46