json - wpf databinding to downloaded data -


i having bit of trouble understanding correct way following:

the data binding exists on internet json file. on timer tick, download , using javascriptserializer, deserialize class.

now, want bind data when deserialize, creates new class, binding breaks (meaning have set itemssource or datacontext again).

does know way around this?

thanks!

what control trying bind data to? if can bind observable collection data source, need clear observable collection before fetching data, , add fetched record collection post deserialization. if not use observablecollection, can add public properties viewmodel , refresh when data back. ensure refresh happens becuase view bound public properties of view model , not aware of object returned call.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -