コード例 #1
0
        protected override void BindViews()
        {
            base.BindViews();

            CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(StatusCollectionCell),
                                                                                   new List <IFeedback>(),
                                                                                   CollectionView,
                                                                                   crossCellModel: new FeedbackGiveViewModel.StatusFeedbackListCell(ModelView),
                                                                                   widthCountCell: Tuple.Create(_heightAndSpaceStatus, FeedbackManager.Instance.GetItem().Count));
        }
コード例 #2
0
        protected override void BindViews()
        {
            base.BindViews();

            CollectionView.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionCell),
                                                                                   new List <IEvent>(),
                                                                                   CollectionView,
                                                                                   crossCellModel: new EventsViewModel.EventsListTagCell(ModelView));

            var daa = CollectionView.CollectionViewLayout as UICollectionViewFlowLayout;

            daa.ScrollDirection   = UICollectionViewScrollDirection.Horizontal;
            daa.EstimatedItemSize = new CoreGraphics.CGSize(1, 33);

            CollectionViewSubTag.Source = ComponentViewSourceFactory.CreateForCollection(nameof(EventCollectionSubTagCell),
                                                                                         new List <IEvent>(),
                                                                                         CollectionViewSubTag,
                                                                                         crossCellModel: new EventsViewModel.EventsListSubTagCell(ModelView));

            TableView.Source = ComponentViewSourceFactory.CreateForTable(nameof(EventNameCell),
                                                                         new List <IEvent>(),
                                                                         TableView,
                                                                         crossCellModel: new EventsViewModel.EventNameListCell(ModelView));
        }