Observable Stack and Queue

I run into the same issue and want to share my solution to others. Hope this is helpful to someone. public class ObservableStack<T> : Stack<T>, INotifyCollectionChanged, INotifyPropertyChanged { public ObservableStack() { } public ObservableStack(IEnumerable<T> collection) { foreach (var item in collection) base.Push(item); } public ObservableStack(List<T> list) { foreach (var item in list) base.Push(item); } public … Read more

ObservableCollection Doesn’t support AddRange method, so I get notified for each item added, besides what about INotifyCollectionChanging?

Please refer to the updated and optimized C# 7 version. I didn’t want to remove the VB.NET version so I just posted it in a separate answer. Go to updated version Seems it’s not supported, I implemented by myself, FYI, hope it to be helpful: I updated the VB version and from now on it … Read more