From 8636935b22e5abd951c2d799013a52ace12a18ff Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 3 May 2015 19:22:05 +0200 Subject: [PATCH] Fix bug in PerspexReadOnlyList. The source collection is not guaranteed to implement IList so do an explicit .ToList() on it. --- Perspex.Base/Collections/PerspexReadOnlyListView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Perspex.Base/Collections/PerspexReadOnlyListView.cs b/Perspex.Base/Collections/PerspexReadOnlyListView.cs index 681fb03284..0d767f358c 100644 --- a/Perspex.Base/Collections/PerspexReadOnlyListView.cs +++ b/Perspex.Base/Collections/PerspexReadOnlyListView.cs @@ -75,7 +75,7 @@ namespace Perspex.Collections { var ev = new NotifyCollectionChangedEventArgs( NotifyCollectionChangedAction.Add, - this.source, + this.source.ToList(), 0); this.CollectionChanged(this, ev); }