CSLA 3.8.1 Property Status - Binding Expression for Property propertyCSLA 3.8.1 Property Status - Binding Expression for Property property
Old forum URL: forums.lhotka.net/forums/t/8058.aspx
Jaans posted on Saturday, November 28, 2009
Since 3.8 the Property Status control supports using a binding expression for the Property property and the Source property has fallen away, giving a usage pattern that is more consistent with Silverlight and generally more powerfull.
I noticed on the Change Log for 3.8.0 (http://www.lhotka.net/Article.aspx?area=22&id=9a744ff6-c6bf-437a-ae13-c0ac41654d08) that the example shows that the binding expression is TwoWay.
I have been unable to figure out why the PropertyStatus control would need to be TwoWay.
I mean, of course the actual target control might be TwoWay if you wanted it to but why would the PropertyStatus need to be?
From the scenarios that I've run, even where the input control (e.g. TextBox, DatePicker, etc.) is set to two way bind to the CSLA BO, the Property Status worked just fine for a default OneWay binding.
Could anyone offer more insight ? Am I missing something?
Many thanks,
JaansRockfordLhotka replied on Saturday, November 28, 2009
TwoWay is probably not required. During some testing I did run into issues where OneWay didn't always update the UI properly - like data binding wasn't hooking up PropertyChanged as expected. In current code that doesn't appear to be required, but your mileage may vary.
I think some of the confusion is that in WPF the default is TwoWay, and in SL it is OneWay - which is really unfortunate...
Jaans replied on Saturday, November 28, 2009
OK - Thanks.
I'll keep an eye out for it.Copyright (c) Marimer LLC