public override void ItemSelected(UICollectionView collectionView, Foundation.NSIndexPath indexPath)
 {
     if (DisableDeSelect)
     {
         if (ranges.startDate <= monthViewItems[(int)indexPath.Item].Day && monthViewItems[(int)indexPath.Item].Day <= ranges.endDate)
         {
             var cell = (DayCollectionViewCell)collectionView.CellForItem(indexPath);
             DayItemSelectedFunction(monthViewItems[(int)indexPath.Item]);
             if (selectedDays.Contains(monthViewItems[(int)indexPath.Item]))
             {
                 cell.DeSelectCell();
                 selectedDays.Remove(monthViewItems[(int)indexPath.Item]);
             }
             else
             {
                 cell.SelectCell();
                 selectedDays.Add(monthViewItems[(int)indexPath.Item]);
             }
         }
     }
     else
     {
         var cell = (DayCollectionViewCell)collectionView.CellForItem(indexPath);
         DayItemSelectedFunction(monthViewItems[(int)indexPath.Item]);
         cell.SelectCell();
     }
 }
示例#2
0
 public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
 {
     if (indexPath.Section == 0)
     {
         var cell = (GridCellConnected)collectionView.CellForItem(indexPath);
         cell.ContentView.Alpha = 1f;
     }
     else if (indexPath.Section == 1)
     {
         var cell = (GridCellDisconnected)collectionView.CellForItem(indexPath);
         cell.ContentView.Alpha = 1f;
     }
 }
        public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // Get cell and change to green background
            var        cell        = (UserCell2)collectionView.CellForItem(indexPath);
            ImageCell2 itemClicked = Cells[indexPath.Row];

            if (DeleteEnabled)
            {
                if (itemClicked.isSelected)
                {
                    //cell.ImageView.Alpha = 1.0f;
                    //cell.Layer.BorderColor = UIColor.Red.CGColor;
                    itemClicked.isSelected = false;
                    cell.Layer.BorderColor = AppColors.PEACH.CGColor;
                    cell.Layer.BorderWidth = 10;
                    //remove the object from the list
                    ImagesToDelete.Remove(itemClicked.ImgOBJ);
                }
                else
                {
                    //cell.ImageView.Alpha = 0.5f;
                    itemClicked.isSelected = true;
                    cell.Layer.BorderColor = UIColor.Clear.CGColor;
                    //add the image object to the list
                    ImagesToDelete.Add(itemClicked.ImgOBJ);
                }
            }
        }
示例#4
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (TagColorCollectionViewCell)collectionView.CellForItem(indexPath);

            if (ColorTag != null)
            {
                defaultColor = ColorUtil.ConvertFromHexColorCode(optionTagColorList [indexPath.Row].ColorValue);
                cell.SetOptionColorView(new DoubleCircleView(ViewConstant.TAG_INNER_CIRCLE_RADIUS, ViewConstant.TAG_OUTER_CIRCLE_RADIUS, defaultColor, UIColor.White, 0, 0));
                SelectedColorCode = optionTagColorList [indexPath.Row].ColorValue;
                ColorTag.Color    = SelectedColorCode;
                collectionView.ReloadData();
            }
            else if (firstDefaultSelectColor == "#FF00FF")
            {
                defaultColor = ColorUtil.ConvertFromHexColorCode(optionTagColorList [indexPath.Row].ColorValue);
                cell.SetOptionColorView(new DoubleCircleView(ViewConstant.TAG_INNER_CIRCLE_RADIUS, ViewConstant.TAG_OUTER_CIRCLE_RADIUS, defaultColor, UIColor.White, 0, 0));
                SelectedColorCode       = optionTagColorList [indexPath.Row].ColorValue;
                firstDefaultSelectColor = SelectedColorCode;
                collectionView.ReloadData();
            }
            else if (firstDefaultSelectColor != "#FF00FF")
            {
                defaultColor = ColorUtil.ConvertFromHexColorCode(optionTagColorList [indexPath.Row].ColorValue);
                cell.SetOptionColorView(new DoubleCircleView(ViewConstant.TAG_INNER_CIRCLE_RADIUS, ViewConstant.TAG_OUTER_CIRCLE_RADIUS, defaultColor, UIColor.White, 0, 0));
                SelectedColorCode       = optionTagColorList [indexPath.Row].ColorValue;
                firstDefaultSelectColor = SelectedColorCode;
                collectionView.ReloadData();
            }
            else
            {
                defaultColor      = ColorUtil.ConvertFromHexColorCode(optionTagColorList [indexPath.Row].ColorValue);
                SelectedColorCode = optionTagColorList [indexPath.Row].ColorValue;
                cell.SetOptionColorView(new TripleCircleView(ViewConstant.TAG_INNER_CIRCLE_RADIUS, ViewConstant.TAG_OUTER_CIRCLE_RADIUS, defaultColor, UIColor.White, 0, 0));
            }
        }
        public void OpenDrawer(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem(indexPath);

            var cellRect = View.ConvertRectFromView(cell.Frame, collectionView);

            var drawerRect = new CGRect(0, cellRect.Bottom, View.Bounds.Width, 8);

            drawerContainerView.Frame = drawerRect;

            View.AddSubview(drawerContainerView);

            drawerRect.Height += 132;

            UIView.Animate(1, () => drawerContainerView.Frame = drawerRect);

            // create screenshot

            //var imageRect = new CGRect (0, cellRect.Bottom + 8, View.Bounds.Width, View.Bounds.Height - cellRect.Bottom - 8);

            //UIGraphics.BeginImageContextWithOptions (imageRect.Size, false, 0);

            //View.DrawViewHierarchy (imageRect, false);

            //var image = UIGraphics.GetImageFromCurrentImageContext ();

            //UIGraphics.EndImageContext ();
        }
示例#6
0
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // Get cell and return to blue background
            var cell = (UserCell)collectionView.CellForItem(indexPath);

            cell.ImageView.Alpha = 1.0f;
        }
示例#7
0
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = null;
            //cell.ContentView.Alpha = (nfloat).5;
        }
示例#8
0
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // Get cell and return to blue background
            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.FromRGB(164, 205, 255);
        }
示例#9
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (lastSelectedCell != null)
            {
                lastSelectedCell.BackgroundColor = UIColor.Clear;
            }

            var cell = collectionView.CellForItem(indexPath);

            cell.BackgroundColor = UIColor.Cyan;

            lastSelectedCell = cell;

            if (cell is FriendsPuzzleListCellViewController)
            {
//				var friendsCell = cell as FriendsPuzzleListCellViewController;
//				var puzzle = puzzlesWitHFriends [indexPath.Item - 1];
            }
            else if (cell is FriendsPuzzleListNewCellViewController)
            {
                var vc = this.Storyboard.InstantiateViewController("MenuCreateViewController") as MenuCreateViewController;
                vc.IsFriendMatch = true;

                NavigationController.PushViewController(
                    vc,
                    true
                    );
            }
        }
示例#10
0
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            SelectedItem = null;
            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.White;
        }
        public void SetFilter(UICollectionView collectionView, NSIndexPath indexPath, bool selected)
        {
            var cell = (FiltersCollectionViewCell)collectionView.CellForItem(indexPath);

            cell.UpdateTheme(selected);

            switch (Items[indexPath.Row])
            {
            case "Fatal":
                ViewModel.Fatal = selected;
                break;

            case "Error":
                ViewModel.Error = selected;
                break;

            case "Warn":
                ViewModel.Warn = selected;
                break;

            case "Info":
                ViewModel.Info = selected;
                break;

            case "Trace":
                ViewModel.Trace = selected;
                break;

            case "Debug":
                ViewModel.Debug = selected;
                break;
            }
        }
示例#12
0
 public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
 {
     if (ItemPressedEvent != null)
     {
         if (dataType == DataType.CHAPTERS)
         {
             var cell = (ChapterCell)collectionView.CellForItem(indexPath);
             ItemPressedEvent(cell.PageID);
         }
         else
         {
             var cell = (ThumbnailCell)collectionView.CellForItem(indexPath);
             ItemPressedEvent(cell.PageID);
         }
     }
 }
示例#13
0
        public override void ItemHighlighted(
            UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.DarkGray;
        }
示例#14
0
        private void Press(UICollectionView collectionView, NSIndexPath indexPath, bool value)
        {
            var cell         = collectionView.CellForItem(indexPath);
            var selectorItem = ((InternalContainer)cell).Content as SelectorItem;

            if (selectorItem != null)
            {
                if (value)
                {
                    selectorItem.IsPressed = true;
                }
                else
                {
                    CoreDispatcher.Main
                    .RunAsync(
                        CoreDispatcherPriority.Normal,
                        async() =>
                    {
                        await Task.Delay(MinTimeBetweenPressStates);
                        selectorItem.IsPressed = false;
                    }
                        );
                }
            }
        }
示例#15
0
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (TagColorCollectionViewCell)collectionView.CellForItem(indexPath);            //

            defaultColor = ColorUtil.ConvertFromHexColorCode(optionTagColorList [indexPath.Row].ColorValue);
            cell.SetOptionColorView(new DoubleCircleView(ViewConstant.TAG_INNER_CIRCLE_RADIUS, ViewConstant.TAG_OUTER_CIRCLE_RADIUS, defaultColor, UIColor.White, 0, 0));
        }
示例#16
0
        public async override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (AllowSelection)
            {
                SelectedFace = Faces [indexPath.Row];

                var cell = collectionView.CellForItem(indexPath);
                cell.Highlighted = true;

                if (ReturnSegue != null)
                {
                    var result = await this.ShowTwoOptionAlert("Please choose", "Do you want to use this face?");

                    if (result)
                    {
                        PerformSegue(ReturnSegue, this);
                        //clean up, AFTER we've returned and any caller could get the thumbnail
                        cleanup();
                    }
                }
                else
                {
                    FaceSelectionChanged?.Invoke(this, EventArgs.Empty);
                }
            }
        }
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (collectionView == null)
            {
                throw new ArgumentNullException();
            }

            var galleryImageCell = (GalleryImageCell)collectionView.CellForItem(indexPath);

            galleryImageCell.CalculateCheckmarkFrameSize();

            if (!GalleryDataSource.SelectedImageIndexPaths.Contains(indexPath))
            {
                GalleryDataSource.SelectedImageIndexPaths.Add(indexPath);
                _galleryViewController.UpdateSelectedImageCount(++GalleryDataSource.NumberOfSelectedImages);
                galleryImageCell.GalleryImageCheckMark.Hidden = false;
                ConfigureImageCellUnCheckedAccessibilityAttributes(galleryImageCell.GalleryImageView);
            }
            else
            {
                GalleryDataSource.SelectedImageIndexPaths.Remove(indexPath);
                _galleryViewController.UpdateSelectedImageCount(--GalleryDataSource.NumberOfSelectedImages);
                galleryImageCell.GalleryImageCheckMark.Hidden = true;
                ConfigureImageCellCheckedAccessibilityAttributes(galleryImageCell.GalleryImageView);
            }

            // Hide Toolbar if no images are selected
            _galleryViewController.ToggleToolBarVisibility(GalleryDataSource.SelectedImageIndexPaths.Count > 0);
        }
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (lastSelectedCell != null) {
                lastSelectedCell.BackgroundColor = UIColor.Clear;
            }

            var cell = collectionView.CellForItem (indexPath);
            cell.BackgroundColor = UIColor.Cyan;

            lastSelectedCell = cell;

            if (cell is FriendsPuzzleListCellViewController) {
            //				var friendsCell = cell as FriendsPuzzleListCellViewController;
            //				var puzzle = puzzlesWitHFriends [indexPath.Item - 1];

            } else if (cell is FriendsPuzzleListNewCellViewController) {

                var vc = this.Storyboard.InstantiateViewController("MenuCreateViewController") as MenuCreateViewController;
                vc.IsFriendMatch = true;

                NavigationController.PushViewController(
                    vc,
                    true
                    );
            }
        }
示例#19
0
        public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // Get cell and change to green background
            var cell = (UserCell)collectionView.CellForItem(indexPath);

            cell.ImageView.Alpha = 0.5f;
        }
        public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            _isLongTap = false;
            var cell = collectionView.CellForItem(indexPath);

            (cell as ContentCellContainer)?.SelectedAnimation(0.4, 0, 0.5);
        }
示例#21
0
        public void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var Selected = Movies[indexPath.Row];
            var Cell     = collectionView.CellForItem(indexPath) as MovieViewCell;

            this.NavigationController.PushViewController(new MovieDetailsViewController(Selected, Cell.CurrentImage), true);
        }
示例#22
0
        public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // Get cell and change to green background
            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.FromRGB(183, 208, 57);
        }
示例#23
0
        public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (VideoCell)collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.Yellow;

            NavigationController.PushViewController(new VideoDetailViewController(cell.Id), true);
        }
示例#24
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (ItemPressedEvent != null)
            {
                var cell = (LibraryCell)collectionView.CellForItem(indexPath);

                ItemPressedEvent(cell.LibraryView.LibraryBook);
            }
        }
示例#25
0
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (ImageCell)collectionView.CellForItem(indexPath);

            cell.ImageView.Alpha = 1;

            //ImageCell row = Rows[indexPath.Row];
            //row.Tapped.Invoke();
        }
        public void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            selectedFilterName = availableFilterInfos [indexPath.Item].FilterName;
            UpdateFilter();

            UpdateSelectionForCell(collectionView.CellForItem(indexPath));

            UpdateFilterPreview();
        }
        public override void ItemSelected(UICollectionView collectionView, Foundation.NSIndexPath indexPath)
        {
            if (mDocumentView != null)
            {
                var cell = collectionView.CellForItem(indexPath) as DocumentCollectionCell;

                mDocumentView.ViewModel.SelectDocumenItemCommand.Execute(cell.ViewModel);
            }
        }
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem (indexPath) as PuzzlesListCellViewController;

            cell.UnsetSelected ();

            MenuPlayViewController menu = ParentViewController as MenuPlayViewController;
            menu.SetSelectedPuzzle (null);
        }
示例#29
0
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var asset = (PHAsset)AssetsFetchResults[indexPath.Item];
            var cell  = (GMGridViewCell)collectionView.CellForItem(indexPath);

            _picker.DeselectAsset(asset);
            _picker.NotifyAssetDeselected(asset);
            ConfigureSelectCellAccessibilityAttributes(cell, false, null);
        }
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            // restore the cell to its original scale when unhighlighted
            UICollectionViewCell cell = collectionView.CellForItem(indexPath);

            cell.BackgroundView.BackgroundColor = UIColor.Black;
            cell.ContentView.Transform          = CGAffineTransform.MakeScale(0.9f, 0.9f);
            cell.BackgroundView.Transform       = CGAffineTransform.MakeScale(1.0f, 1.0f);
        }
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (_isLongTap)
            {
                return;
            }
            var cell = collectionView.CellForItem(indexPath);

            (cell as ContentCellContainer)?.SelectedAnimation(0.4, 0.5, 0);
        }
示例#32
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var item = GetItem(indexPath);

            SelectedItem = item;

            var cell = collectionView.CellForItem(indexPath);

            cell.ContentView.BackgroundColor = UIColor.Green;
        }
        public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.CellForItem (indexPath);
            cell.BackgroundColor = UIColor.Clear;

            if (cell is FriendsPuzzleListCellViewController) {
            //				var friendsCell = cell as FriendsPuzzleListCellViewController;
            //				var puzzle = puzzlesWitHFriends [indexPath.Item - 1];
            }
        }
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            lastSelectedCell.UnsetSelected ();

            var cell = collectionView.CellForItem (indexPath) as PuzzlesListCellViewController;
            lastSelectedCell = cell;
            cell.SetSelected ();

            var puzzle = GetPuzzleForPath (indexPath);

            MenuPlayViewController menu = ParentViewController as MenuPlayViewController;
            menu.SetSelectedPuzzle (puzzle);
        }
		// TODO: Step 3a: uncomment to enable highlighting during a touch and unhighlight on touch up
		public override void ItemHighlighted (UICollectionView collectionView, NSIndexPath indexPath)
		{
			UICollectionViewCell cell = collectionView.CellForItem (indexPath);

			// animate the cell to scale up when highlighted
			UIView.Animate (
				duration: 0.2, 
				animation: () => { 
					cell.ContentView.Transform = CGAffineTransform.MakeScale (1.1f, 1.1f);
					cell.BackgroundView.Transform = CGAffineTransform.MakeScale (1.4f, 1.4f);
					cell.BackgroundView.BackgroundColor = UIColor.Purple;
					cell.Layer.ZPosition = ++cellZIndex;
				}
			);
		}
示例#36
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var tile = (TileCellView)collectionView.CellForItem (indexPath);
            var updateTiles = _tileGrid.Click (tile.Tile);
            tile.Update ();
            tile.Layer.BorderColor = tile.Tile.IsPlayerRed? UIColor.Red.CGColor:UIColor.Blue.CGColor;
            tile.Layer.BorderWidth = 4.0f;

            if (updateTiles != null)
            {
                foreach (var item in updateTiles) {
                    var updateTile = (TileCellView)CollectionView.CellForItem (NSIndexPath.FromRowSection(item, 0));
                    updateTile.Update ();
                }
            }

            CheckWinning ();
            _headerView.Update ();
        }
示例#37
0
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            if (_viewMode == ViewMode.Read)
            {
                ImageEntity image = _filteredImages[(int)indexPath.Item];

                //                var photoController = new PhotoViewController(image, _filteredImages);
                //                NavigationController.PushViewController(photoController, true);

                //                                var pageViewController = new PageViewController(image, _filteredImages);
                //                NavigationController.PushViewController(pageViewController, true);

                //                                var viewController = new PhotoViewController1(image, _filteredImages);
                //                                NavigationController.PushViewController(viewController, false);

                //                var viewController = new PhotoViewController2(image, _filteredImages);
                //                NavigationController.PushViewController(viewController, false);

                var viewController = new PhotoViewController4(image, _filteredImages);
                NavigationController.PushViewController(viewController, false);
                return;
            }
            var cell = (ImagePreviewCell)collectionView.CellForItem(indexPath);
            ImageEntity entity = _filteredImages[(int)indexPath.Item];

            ImageEntity selectedImage;
            if (_selectedImages.TryGetValue(entity.LocalIdentifier, out selectedImage))
            {
                _selectedImages.Remove(entity.LocalIdentifier);
                cell.UnselectCell();
            }
            else
            {
                _selectedImages[entity.LocalIdentifier] = entity;
                cell.SelectCell();
            }

            NavigationItem.LeftBarButtonItem.Enabled = _selectedImages.IsNotEmpty();
            _btTrash.Enabled = _selectedImages.IsNotEmpty();
            _btShare.Enabled = _selectedImages.IsNotEmpty();
        }
示例#38
0
 public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
 {
     var tile = (TileCellView)collectionView.CellForItem (indexPath);
     tile.Layer.BorderWidth = 0;
 }
		public override void ItemHighlighted (UICollectionView collectionView, NSIndexPath indexPath)
		{
			// Get cell and change to green background
			var cell = collectionView.CellForItem(indexPath);
			cell.ContentView.BackgroundColor = UIColor.FromRGB(183,208,57);
		}
示例#40
0
        public override void ItemUnhighlighted(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (CategoryCell)collectionView.CellForItem(indexPath);
            cell.ImageView.Alpha = 1;

            CategoryEntity row = Rows[indexPath.Row];
            row.Tapped.Invoke();
        }
 internal UICollectionViewCell CellForItem(UICollectionView view, NSIndexPath path)
 {
     if (path == null)
         return null;
     UICollectionViewCell cell = view.CellForItem(path);
     if (cell != null)
         return cell;
     if (_lastCreatedCellPath != null && path.Equals(_lastCreatedCellPath))
         return _lastCreatedCell;
     return null;
 }
        public void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            selectedFilterName = availableFilterInfos [indexPath.Item].FilterName;
            UpdateFilter ();

            UpdateSelectionForCell (collectionView.CellForItem (indexPath));

            UpdateFilterPreview ();
        }
示例#43
0
 public override void ItemHighlighted(UICollectionView collectionView, NSIndexPath indexPath)
 {
     var cell = (CategoryCell)collectionView.CellForItem(indexPath);
     cell.ImageView.Alpha = 0.5f;
 }
 public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
 {
     UICollectionViewCell cell = collectionView.CellForItem (indexPath);
     cell.BackgroundColor = UIColor.Green;
 }
		public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath){
			var cell = collectionView.CellForItem (indexPath) as ProductListCell;
			cell.checkMarkImage.Image = UIImage.FromBundle ("delcheck.png");
			cell.Selected = true;
		}
		public override void ItemUnhighlighted (UICollectionView collectionView, NSIndexPath indexPath)
		{
			var cell = collectionView.CellForItem (indexPath);
			cell.ContentView.BackgroundColor = UIColor.White;
		}
			public override bool ShouldSelectItem (UICollectionView collectionView, Foundation.NSIndexPath indexPath)
			{
				var asset = (PHAsset)_parent.AssetsFetchResults [indexPath.Item];

				var cell = (GMGridViewCell)collectionView.CellForItem (indexPath);

				if (!cell.IsEnabled) {
					return false;
				} else {
					return _parent._picker.VerifyShouldSelectAsset (asset);
				}
			}
		public override void ItemUnhighlighted (UICollectionView collectionView, NSIndexPath indexPath)
		{
			// restore the cell to its original scale when unhighlighted
			UICollectionViewCell cell = collectionView.CellForItem (indexPath);
			cell.BackgroundView.BackgroundColor = UIColor.Black;
			cell.ContentView.Transform = CGAffineTransform.MakeScale (0.9f, 0.9f);
			cell.BackgroundView.Transform = CGAffineTransform.MakeScale (1.0f, 1.0f);
		}
		public override void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath){
			var cell = collectionView.CellForItem (indexPath) as ProductListCell;
			cell.checkMarkImage.Image = null;
			cell.Selected = false;


		}
 public override void ItemHighlighted(UICollectionView collectionView, Foundation.NSIndexPath indexPath)
 {
     var cell = collectionView.CellForItem (indexPath);
     cell.ContentView.BackgroundColor = UIColor.FromRGB(0x34,0x98,0xDB).ColorWithAlpha(0xcc);
 }
		public override void ItemUnhighlighted (UICollectionView collectionView, NSIndexPath indexPath)
		{
			// Get cell and return to blue background
			var cell = collectionView.CellForItem(indexPath);
			cell.ContentView.BackgroundColor = UIColor.FromRGB(164,205,255);
		}
 public void ItemDeselected(UICollectionView collectionView, NSIndexPath indexPath)
 {
     UpdateSelectionForCell (collectionView.CellForItem (indexPath));
 }