How to create Dependency properties in CSLA 4.1

How to create Dependency properties in CSLA 4.1

Old forum URL:

CVARON14 posted on Wednesday, April 11, 2012

Is there a way  to create dependecy properties in CSLA 4.1 ?


Thank you.

RockfordLhotka replied on Thursday, April 12, 2012

Dependency properties are part of WPF, Silverlight, WF, and WinRT. They aren't part of CSLA, and shouldn't be implemented in the business layer (because they are a presentation layer concept).

So generally the answer is no - you don't WANT to implement dependency properties in the business layer, and CSLA is all about creating the business layer, so it isn't supported.

You might implement dependency properties in a viewmodel, or in other presentation layer code. But that isn't really the focus of CSLA.

CSLA does have the ViewModelBase class in Csla.Xaml. That class does inherit from DependencyObject, so you can create dependency properties in a viewmodel if necessary.

Copyright (c) Marimer LLC