public SectionPageViewModel(SectionService sectionService) { _SectionService = sectionService; items = new ObservableCollection <Section>(_SectionService.GetAllSections()); ItemsCollectionView = (CollectionView)CollectionViewSource.GetDefaultView(items); }
private void LoadSections() { BookSectionsCollectionView = (ICollectionView)CollectionViewSource.GetDefaultView(_SectionService.GetAllSections()); RaisePropertyChanged(() => BookSectionsCollectionView); }