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