asynchronous - Silverlight listbox itemsource change not updating list -


working listbox in windows phone 7 trying make async web service call update listbox on success.

the method calls webservice looks this:

    public void getreadinglist(action<observablecollection<ministoryviewmodel>> success, action<string> failure) 

i calling method code:

        api.getreadinglist(             (items) => dispatcher.begininvoke(() =>              {                 lsbnewest.itemssource = items;             }),             (error) =>             {                 messagebox.show(error);             }); 

using code nothing happens ui wise until click or scroll on listbox - contents updated correctly. assuming code not being run on correct thread, how can fix this?

no errors in code, right regarding spec...

try : flush itemssource, fill items addrange, or else. check if ui automatically updated.

if not, create basic silverlight app on windows, , compare 2 behaviours... maybe bug ;=)


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -