Question

In CinchV1 there was a section of Sacha's CodeProject post which described how to develop Models with Cinch. Now, looking at the documentation for CinchV2, all I can find out about models is this:

4 Developing Models Using Cinch

      NOTE : This is no longer possible in Cinch V2

Clearly, I am missing something, right? I mean, it's not the 'VVM' Pattern, is it?

What exactly does it mean when it says "This is no longer possible in Cinch V2"?

If Models are no longer used, what should I do in place of using them?

No correct solution

OTHER TIPS

So the answer was buried in a part of the CodeProject post I didn't see. Here is what it says:

As I just stated, Cinch does actually allow you to either expose a CurrentXXXModel off your ViewModel which supports DataWrappers/Validation Rules (IDataErrorInfo) / ViewMode changes / IEditableObject operations, by use of the two Cinch Model classes mentioned above.

But as I also stated above, I no longer recommend that approach, and think that the Model should be left alone, and that you should do all your DataWrappers/Validation Ruless (IDataErrorInfo) / ViewMode changes /IEditableObject operations in your ViewModel.

1.) It is no longer preferred to write a Model that is inherited from a Cinch base class. Models are still used in CinchV2, but binding a View to a Model is no longer preferred.

2.) Write Models as you normally would, but only use DataWrappers and such in the ViewModel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top