CSLA.net 4 CanSave CanCancel error/problem Xaml ViewModel

CSLA.net 4 CanSave CanCancel error/problem Xaml ViewModel

Old forum URL: forums.lhotka.net/forums/t/9917.aspx

JJLoubser posted on Wednesday, January 05, 2011

Normal 0 false false false EN-ZA X-NONE X-NONE MicrosoftInternetExplorer4

             The CanSave & CanCancel work when we do one/two actions(insert, move, drag, update, delete) of parent and child objects in a xaml form, but more than one/two actions the CanSave and CanCancel do not update or do not work, we must do a advance debug now, but is there something we are missing? We did a bit of debugging before and some of the objects IsDirty do not update. Why?

             <telerik:RadButton Name="SaveButton"



                               IsEnabled="{Binding Path=CanSave}"/>

                <telerik:RadButton Name="CancelButton" Height="Auto"  Margin="5,0,0,0"


                                   IsEnabled="{Binding Path=CanCancel}"/>



public CompanyViewModel(Business.OrgStructure.CompanyEC company)


      StatusIsBusy = true;


      ManageObjectLifetime = false;


      Model = company;


      StatusIsBusy = false;




We set the ManageObjectLifetime to false, to get rid of some issues and to get the following to work:


a.       IsDirty and

b.      protected override void OnChildChanged(Csla.Core.ChildChangedEventArgs e)







but after that still getting canSave errors?

Copyright (c) Marimer LLC