コード例 #1
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.Dequeue <GroupPersonCVC> (indexPath);

            cell.SetPerson(Group.People [indexPath.Section], indexPath.Section, indexPath.Row);

            return(cell);
        }
コード例 #2
0
        public override UICollectionReusableView GetViewForSupplementaryElement(UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath)
        {
            var person = Group.People [indexPath.Section];
            var header = collectionView.Dequeue <SimpleCVHeader> (UICollectionElementKindSection.Header, indexPath);

            header.SetTitle(person.Name);

            return(header);
        }
コード例 #3
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.Dequeue <FaceCVC> (indexPath);
            var face = Results [indexPath.Section].Faces [indexPath.Row];

            cell.SetFaceImage(face, face.GetImage());

            return(cell);
        }
コード例 #4
0
        public override UICollectionReusableView GetViewForSupplementaryElement(UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath)
        {
            var groupResult = Results [indexPath.Section];
            var header      = collectionView.Dequeue <SimpleCVHeader> (UICollectionElementKindSection.Header, indexPath);

            header.SetTitle(groupResult.Title);

            return(header);
        }
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.Dequeue <UICollectionViewDrawerCell> (indexPath);

            var item = items [(int)indexPath.Item];

            cell.SetData(item);

            return(cell);
        }
コード例 #6
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell      = collectionView.Dequeue <FaceCVC> (indexPath);
            var face      = Results [indexPath.Section].Faces [indexPath.Row];
            var thumbnail = thumbnailProvider(face);

            cell.SetFaceImage(face, thumbnail);

            return(cell);
        }
コード例 #7
0
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.Dequeue <FaceCVC> (indexPath);

            var detectedFace = Faces [indexPath.Row];
            var image        = thumbnailImages [indexPath.Row];

            cell.SetFaceImage(detectedFace, image);

            return(cell);
        }
        public override UICollectionReusableView GetViewForSupplementaryElement(UICollectionView collectionView, NSString elementKind, NSIndexPath indexPath)
        {
            var header = collectionView.Dequeue <DrawerContentCollectionViewHeader> (elementKind, indexPath);

            return(header);
        }
        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.Dequeue <DrawerContentCollectionViewCell> (indexPath);

            return(cell);
        }