CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

How to create Dependency properties in CSLA 4.1

rated by 0 users
Answered (Not Verified) This post has 0 verified answers | 1 Reply | 2 Followers

Not Ranked
2 Posts
CVARON14 posted on Wed, Apr 11 2012 12:36 PM

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

 

Thank you.

All Replies

Top 10 Contributor
9,270 Posts
Suggested by RockfordLhotka

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.

Rocky

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems