Add INotifyCollectionChangedSynchronizedView.Refresh()
This commit is contained in:
parent
d7fac361bd
commit
d8b0d8f117
@ -59,6 +59,7 @@ namespace ObservableCollections
|
||||
|
||||
public interface INotifyCollectionChangedSynchronizedView<out TView> : IReadOnlyCollection<TView>, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable
|
||||
{
|
||||
void Refresh();
|
||||
}
|
||||
|
||||
public static class ObservableCollectionsExtensions
|
||||
|
@ -131,6 +131,11 @@ namespace ObservableCollections.Internal
|
||||
self.PropertyChanged?.Invoke(self, CountPropertyChangedEventArgs);
|
||||
}
|
||||
}
|
||||
|
||||
public void Refresh()
|
||||
{
|
||||
OnCollectionChanged(new SynchronizedViewChangedEventArgs<T, TView>(NotifyCollectionChangedAction.Reset));
|
||||
}
|
||||
}
|
||||
|
||||
internal class ListNotifyCollectionChangedSynchronizedView<T, TView>
|
||||
|
Loading…
x
Reference in New Issue
Block a user