Vibrant discussion about CSLA .NET and using the framework to build great business applications.
Does anybody have any examples of using CSLA with MVVMLight? I'm trying to figure out how to hook up the WCF and DataPortal calls. I see the BeginRefresh in samples using CSLA but that is using the ViewModel from the CSLA foundation that is build with Generics. Does anybody have any suggestions or resources I might could use?
I have looked into Caliburn.Micro and my recommendation is to "merge" most of the Csla.Xaml.ViewModel into the ViewModel base class in your selected UI framework.This is available for Csliburn.Micro in http://cslacontrib.codeplex.com (goto Source tab and download latest source)
I'd be interested in publishing similar code for MvvmLight on Codeplex if you can share the code with the community!!
Jonny Bekkum, Norway
I'll be glad to when I get it working. Are there any examples out there that don't use the "ViewModel" object to do the delegate and data transfer? Seems all the samples I find use the ViewModel inheritance to implement that.
I think that all the samples do use the base class because it simplifies coding.
But you can look at the ViewModelBase code itself to see what is done. The code in that class could be written directly in your code-behind, or in your own viewmodel base class, or your own viewmodel. It isn't that terribly complicated, but it isn't the sort of code I want to write in every viewmodel, and that is why I put it in a base class.