Browse Source

Fix bug in PerspexReadOnlyList.

The source collection is not guaranteed to implement IList so do an
explicit .ToList() on it.
pull/58/head
Steven Kirk 12 years ago
parent
commit
8636935b22
  1. 2
      Perspex.Base/Collections/PerspexReadOnlyListView.cs

2
Perspex.Base/Collections/PerspexReadOnlyListView.cs

@ -75,7 +75,7 @@ namespace Perspex.Collections
{ {
var ev = new NotifyCollectionChangedEventArgs( var ev = new NotifyCollectionChangedEventArgs(
NotifyCollectionChangedAction.Add, NotifyCollectionChangedAction.Add,
this.source, this.source.ToList(),
0); 0);
this.CollectionChanged(this, ev); this.CollectionChanged(this, ev);
} }

Loading…
Cancel
Save