Beispiel #1
0
 public HomeCollectionDelegate(
     UICollectionView collectionView,
     HomeViewModel viewModel,
     HomeCollectionSource collectionSource)
 {
     _collectionView   = collectionView;
     _viewModel        = viewModel;
     _collectionSource = collectionSource;
     _collectionSource.DataReloaded += OnDataReloaded;
 }
Beispiel #2
0
        protected override IListViewSource CreateListViewSource()
        {
            var collectionSource =
                new HomeCollectionSource(OrgCollectionView, ViewModel);

            this.CreateBinding(collectionSource)
            .To <HomeViewModel>(vm => vm.EventInfos)
            .Apply();

            return(collectionSource);
        }