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

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

            return(collectionSource);
        }