public MangaViewModel() { UpdateDetailCommand = new Command(UpdateDetail, true); Chapters = new ObservableCollection<ChapterViewModel>(); BindingOperations.EnableCollectionSynchronization(Chapters, _chaptersLock); Sources = new ObservableCollection<DetailMangaSource>(); BindingOperations.EnableCollectionSynchronization(Sources, _chaptersLock); }
public LibraryViewModel() { Sources = new ObservableCollection<Source>(); Mangas = new ObservableCollection<MangaViewModel>(); Sources.Add(new MangaHereSource()); Sources.Add(new MangaReaderSource()); UpdateMangasWithRecentChaptersCommand = new Command(UpdateMangasWithRecentChapters, true); UpdateMangasWithRecentChapters(); ListCollectionView _customerView = CollectionViewSource.GetDefaultView(Mangas) as ListCollectionView; //_customerView.CustomSort = new MangaSorter(); }