Skip to content

Commit

Permalink
Fix ObservableDictionary.ToNotifyCollectionChanged #71
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Sep 12, 2024
1 parent 9fe7a38 commit 3d26e1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ObservableCollections/SynchronizedViewList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ObservableCollections.Internal;
using ObservableCollections.Internal;
using System;
using System.Collections;
using System.Collections.Generic;
Expand Down Expand Up @@ -272,7 +272,10 @@ private void Parent_ViewChanged(in SynchronizedViewChangedEventArgs<T, TView> e)
{
if (e.NewStartingIndex == -1)
{
var index = listView.Count;
listView.Add(e.NewItem.View);
OnCollectionChanged(e.WithNewStartingIndex(index));
return;
}
else
{
Expand Down

0 comments on commit 3d26e1d

Please sign in to comment.