Upgrading a project to CSLA.NET 4.
In the WPF code we are using the PropertyStatus control, binding to the Source and Target properties. After swapping to CSLA 4, the binding are no longer compiling.
What's the solution here?
The code that is no longer compiling with problem properties in bold...
<csla:PropertyStatus Source="{Binding EditableCase}"
Property="Title"
Grid.Column="1"
Target="{Binding ElementName=txtCaseTitle}" />
The solution is to actually bind the controls to the propertystatus. Reverse what you are currently doing. So you would bind the Enabled property of your textbox to the "CanWrite" property of the propertystatus. This type of binding gives us much more control.
In fact, the TargetControl property has been removed from PropertyStatus, thereby avoiding any confusion as to how this should be handled.
Copyright (c) Marimer LLC