add new issue       

Issue ID:  729     Enable subclassing PropertyStatus      
Created by rocky on 2010-04-05 11:38 AM, 2881 days ago
Project:  CSLA .NET
Category:  enhancement
Priority:  med
Status:  closed
Feature area:Xaml
  Entering "issue#999" in comment creates link to id 999

show inline images      show change history

comment 2505 posted by JonnyBee on 2010-04-30 1:57 AM, 2856 days ago 
Changes summary to enable sublassing of PropertyStatus:

Added protected property for IsReadOnly, Source, BindingPath
Changed scope to protected virtual on SetSource, GetRealSource, UpdateState, GotoState, FindIsReadOnly and HandleTarget
Changed scope to protected on property setter for CanRead, CanWrite
Changed scope to protected on FindChild

Also modified internal code of PropertyStatus to use the new properties instead of directly accessing private backing variables.
comment 2342 posted by rocky on 2010-04-05 11:38 AM, 2881 days ago 

Re: Implementation of Edit mode

I managed to create a custom PropertyStatus control derived from your type, with just the following changes:

private object _source = null; changed to protected object _source = null;
private string _bindingPath = string.Empty; changed to protected string _bindingPath = string.Empty;
private bool _isReadOnly = false; changed to protected bool _isReadOnly = false;
CanRead and CanWrite setters changed from private to protected
private void HandleTarget changed to protected virtual HandleTarget
private void GoToState(bool useTransitions) changed to protected virtual void GoToState(bool useTransitions)