/// <summary> /// Clear previous contents and insert all items from source to the ObservableCollection, wrapped into MusicCollectionListItems. /// </summary> public static void CreateFrom(this ObservableCollection <IndexedLibraryItem> target, IEnumerable <LibraryItem> source) { target.Clear(); target.AddFrom(source); }