Hi,
It appears that collection changing events use incorrect type for EventArgs, i.e. NotifyCollectionChangedEventArgs instead of NotifyCollectionChangingEventArgs. Therefore there's no option to cancel this action.
Is this by design or something that's been missed?
Eugene
Hello Eugene,
I can say that Silverlight doesn’t have a NotifyCollectionChangingEventArgs and this is why the CollectionChanging events use NotifyCollectionChangedEventArgs, but all these collections has a CancelCollectionChanging Property, which can be set to true in order to cancel the CollectionChanging event. Also this Property is reset to false every time the event ends, so next time it could be set to true or not.
Hope this helps you.
Stefan,
what I mean is that normally all ...Changing events provide an option of Canceling the action by setting a flag (i.e. Canceled or something like that). CollectionChanging event lacks such option and I thought it's a good thing to add it.
Thank you.,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post, but I am not completely sure, which exactly events you mean, so could you please be more specific which are these events and which is the full version of Infragistics you are using.
Feel free to write me if you have further questions.