Beispiel #1
0
        public SectionPageViewModel(SectionService sectionService)
        {
            _SectionService = sectionService;

            items = new ObservableCollection <Section>(_SectionService.GetAllSections());
            ItemsCollectionView = (CollectionView)CollectionViewSource.GetDefaultView(items);
        }
Beispiel #2
0
 private void LoadSections()
 {
     BookSectionsCollectionView = (ICollectionView)CollectionViewSource.GetDefaultView(_SectionService.GetAllSections());
     RaisePropertyChanged(() => BookSectionsCollectionView);
 }