Problem with ViewModel<T>

Problem with ViewModel<T>

Old forum URL:

TerryH posted on Sunday, November 28, 2010

I'm having a problem with ViewModel from Csla.Xaml. If I create a new class from ViewModel<T> and T is derived from BusinessListBase, everything is OK, but if T is derived from BusinessBase when I use the Data Sources window, and create a new data source based on the ViewModel the Model property is always grayed out. If I just change the T to a BLB without any other changes to the viewmodel, recompile and open the data sources window again the Model property is OK and I can drag it onto the design surface.

RockfordLhotka replied on Monday, November 29, 2010

I am confused, as I do this all the time.

I do think that the Model starts out grayed out, because the default is for some sort of list display, and you need to change the Data Sources window so it knows to generate a Details view for the Model property, but then it should work fine.

Is this CSLA 4 or 3.8?

TerryH replied on Monday, November 29, 2010


If your confused then I'm in BIG trouble  Smile

This evening I create a whole new solution and was very careful not to mix DLL versions, this time I was able to click the dropdown and select Detail, the other solutions that I created when I clicked the dropdown so that I could select Detail, the combobox wouldn't open!

Its CSLA 4

Thanks for your quick response

Copyright (c) Marimer LLC