Skip to content

Commit

Permalink
f2
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Feb 15, 2024
1 parent 17ae2c4 commit f8379ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions sandbox/ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
list.AddRange(new[] { 10, 20, 30 });


return;




Expand Down
4 changes: 2 additions & 2 deletions sandbox/WpfApp/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace WpfApp
public partial class MainWindow : Window
{
ObservableList<int> list;
public ISynchronizedView<int, int> ItemsView { get; set; }
public INotifyCollectionChangedSynchronizedView<int> ItemsView { get; set; }

public MainWindow()
{
Expand All @@ -35,7 +35,7 @@ public MainWindow()

list = new ObservableList<int>();
list.AddRange(new[] { 1, 10, 188 });
ItemsView = list.CreateSortedView(x => x, x => x, comparer: Comparer<int>.Default).WithINotifyCollectionChanged();
ItemsView = list.CreateSortedView(x => x, x => x, comparer: Comparer<int>.Default).ToNotifyCollectionChanged();


BindingOperations.EnableCollectionSynchronization(ItemsView, new object());
Expand Down
2 changes: 1 addition & 1 deletion src/ObservableCollections/IObservableCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface ISortableSynchronizedView<T, TView> : ISynchronizedView<T, TVie
//{
//}

public interface INotifyCollectionChangedSynchronizedView<out TView> : IReadOnlyCollection<TView>, INotifyCollectionChanged, INotifyPropertyChanged
public interface INotifyCollectionChangedSynchronizedView<out TView> : IReadOnlyCollection<TView>, INotifyCollectionChanged, INotifyPropertyChanged, IDisposable
{
}

Expand Down

0 comments on commit f8379ac

Please sign in to comment.