Observable Collection and WCF

Feb 25, 2012 at 1:17 AM

Hi Tony,

Simple MVVM is great and we decided to use for our WPF development. We are using WCF for data retrival and processing. When we return data from WCF, which collection should we use ? Observable collection or List ?

Currently, we are using List and we need to convert list into observable collection whenever we would like to bind to WPF control or Return data back to WCF. 

What are the constraints if we use obserable collection for WCF so that we don't need to do conversion.

Will there be any performance issue ?

Thanks for your great work.

Feb 25, 2012 at 2:10 PM
My preference is to return IList<T> from the service agent, then pass it to the ctor of ObservableCollection. Virtually no overhead for that. That keeps things nice and clean, since OC's raison d'être is data binding.

Feb 26, 2012 at 12:19 PM

Hi Toni,

I started using your project in my Silverlight application.

I would like to implement data paging (between Domain Service -> Service Agent -> ViewModel -> View)
Based on your experience, what do you recommend? 
For example, what collection to use? How to maintain state information?

Thank you,