You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In IObservableListBind{TItemA,TItemB}, IObservablePropertyBinder add a user definable exception handling routine that is called if an exception occurs when synchronizing and a dirty flag for when a synchronization did not complete successfully.
This would replace the need for the following if exceptions are expected during synchronization:
try{//need for every AddlistA.Add(item);catchException(){if(listA.Count!=listB.Count)listA.List.Remove(item);}
with something like this:
obvListBind.SyncExceptionHandler+=(sourceList,targetList,eventArgs)=>{//Only defined onceif(!obvListBind.IsDirty)return;if(eventArgs.Action==NotifyCollectionChangedAction.Add)sourceList.List.RemoveAt(eventArgs.NewStartingIndex);// ... other events
The text was updated successfully, but these errors were encountered:
In
IObservableListBind{TItemA,TItemB}
,IObservablePropertyBinder
add a user definable exception handling routine that is called if an exception occurs when synchronizing and a dirty flag for when a synchronization did not complete successfully.This would replace the need for the following if exceptions are expected during synchronization:
with something like this:
The text was updated successfully, but these errors were encountered: