예제 #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);
        }