当前位置: 首页>>代码示例>>C#>>正文


C# UICollectionView.DequeueReusableCell方法代码示例

本文整理汇总了C#中UICollectionView.DequeueReusableCell方法的典型用法代码示例。如果您正苦于以下问题:C# UICollectionView.DequeueReusableCell方法的具体用法?C# UICollectionView.DequeueReusableCell怎么用?C# UICollectionView.DequeueReusableCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UICollectionView的用法示例。


在下文中一共展示了UICollectionView.DequeueReusableCell方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetCell

		public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
		{
			var cell = (ProductCell)collectionView.DequeueReusableCell (reuseIdentifier, indexPath);
			ConfigureCell (cell, Products [indexPath.Row]);

			return cell;
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:7,代码来源:CatalogCollectionViewController.cs

示例2: GetCell

		public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
		{
			SearchCollectionCell cell = (SearchCollectionCell)collectionView.DequeueReusableCell (identifer, indexPath);
			cell.movie = filterData [indexPath.Row];
			cell.UpdateCell ();
			return cell;
		}
开发者ID:eternaltung,项目名称:RottenTomatoes-Xamarin.iOS,代码行数:7,代码来源:SearchCollectionView.cs

示例3: GetCell

        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            DBError err;
            PhotoCell cell = (PhotoCell)collectionView.DequeueReusableCell(PhotoCell.Key, indexPath);

            DBPath path = Photos [Photos.Length - indexPath.Row - 1].Path;
            DBFile file = DBFilesystem.SharedFilesystem.OpenFile (path, out err);
            UIImage image = null;

            // This means the file doesn't exist, or it is open with asynchronous operation.
            if (file == null) {
                cell.Content = null;
                return cell;
            }

            if (file.Status.Cached) {
                image = new UIImage (file.ReadData (out err));
                file.Close ();
            } else {
                file.AddObserver (this, () => {
                    DBFileStatus newStatus = file.NewerStatus;

                    if ((newStatus == null && file.Status.Cached) ||
                        (newStatus != null && newStatus.Cached)) {
                        image = new UIImage (file.ReadData (out err));
                        cell.Content = image;
                        file.RemoveObserver(this);
                        file.Close ();
                    }
                });
            }
            cell.Content = image;

            return cell;
        }
开发者ID:WaDAMake,项目名称:CloudPrint,代码行数:35,代码来源:CameraSyncViewController.cs

示例4: GetCell

 public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
 {
     var cell = (PictureBigCollectionCell)collectionView.DequeueReusableCell (PictureBigCollectionCell.CellId, indexPath);
     cell.resetScale ();
     AppDelegate.MakeImageFromURL (cell.Image, Items.Images [indexPath.Row]);
     return cell;
 }
开发者ID:jgrozdanov,项目名称:mono-sport,代码行数:7,代码来源:PictureBigCollectionController.cs

示例5: GetCell

 public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
 {
     var cell = collectionView.DequeueReusableCell(ToolCell.Key, indexPath) as ToolCell;
     cell.Text = AvailableTools[indexPath.Item].Name;
     cell.SetBorder();
     return cell;
 }
开发者ID:reactiveui-forks,项目名称:VirtualSales,代码行数:7,代码来源:AvailableToolsViewController.cs

示例6: GetCell

        public override UICollectionViewCell GetCell(UICollectionView collectionView, Foundation.NSIndexPath indexPath)
        {
            var cell = (ListingImageCell)collectionView.DequeueReusableCell(CellID, indexPath);
            cell.Image = urls[indexPath.Row];

            return cell;
        }
开发者ID:erdennis13,项目名称:EthansList,代码行数:7,代码来源:ImageCollectionViewSource.cs

示例7: GetCell

        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = (CVCell)collectionView.DequeueReusableCell (cellId, indexPath);

            cell.Text = indexPath.Row.ToString ();

            return cell;
        }
开发者ID:pacificIT,项目名称:CollectionViewWithXibCell,代码行数:8,代码来源:CollectionViewController.cs

示例8: GetCell

		public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
		{
			var cell = (PagePreview)collectionView.DequeueReusableCell (cellName, indexPath);

			cell.Page = pages.ElementAt (indexPath.Row);

			return cell;
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:8,代码来源:MasterViewController.cs

示例9: GetCell

 public override UICollectionViewCell GetCell(UICollectionView collectionView, MonoTouch.Foundation.NSIndexPath indexPath)
 {
     var tileCell = (TileCellView)collectionView.DequeueReusableCell (tileCellId, indexPath);
     tileCell.Tile = _tileGrid.Grid[indexPath.Row];
     tileCell.Layer.BorderWidth = 0;
     tileCell.Update ();
     return tileCell;
 }
开发者ID:CarriePlaced,项目名称:Minesweeper,代码行数:8,代码来源:GameGridView.cs

示例10: GetCell

 public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
 {
     var cell = (PreferenceCell)collectionView.DequeueReusableCell (PreferenceCell.CellId, indexPath);
     AppDelegate.MakeImageFromURL (cell.Image, "http://www.sport.net" + AppDelegate.MainCategories.Categories [indexPath.Row].Thumb);
     cell.Category = AppDelegate.MainCategories.Categories[indexPath.Row].Name;
     cell.SetCellState (AppDelegate.MainCategories.Categories [indexPath.Row].Checked);
     return cell;
 }
开发者ID:jgrozdanov,项目名称:mono-sport,代码行数:8,代码来源:PreferencesController.cs

示例11: GetCell

		public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
		{
			// Get a reusable cell and set it's title from the item
			var cell = collectionView.DequeueReusableCell ("Cell", indexPath) as TextCollectionViewCell;
			cell.Title = Numbers [(int)indexPath.Item].ToString();

			return cell;
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:8,代码来源:WaterfallCollectionSource.cs

示例12: GetCell

        public UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            ImageLabelCollectionViewCell cell = (ImageLabelCollectionViewCell)collectionView.DequeueReusableCell(new NSString("ImageLabelCollectionViewCellIdentifier"), indexPath);
            cell.BackgroundColor = UIColor.Clear;
            cell.CollectionCellImageView.Image = UIImage.FromBundle(Speakers[indexPath.Row].SpeakerPhoto);
            cell.CollectionCellLabel.Text = Speakers[indexPath.Row].SpeakerName;

            return cell;
        }
开发者ID:BobStolk,项目名称:EventApp,代码行数:9,代码来源:SpeakerListViewController.cs

示例13: GetCell

        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var item = _items [indexPath.Row];
            var cell = (ExampleCollectionItemCell) collectionView.DequeueReusableCell (CellId, indexPath);

            cell.Title = item.Name;

            return cell;
        }
开发者ID:jamilgeor,项目名称:Crayon,代码行数:9,代码来源:UICollectionViewExample.cs

示例14: GetCell

        public override UICollectionViewCell GetCell (UICollectionView collectionView, MonoTouch.Foundation.NSIndexPath indexPath)
        {
            var animalCell = (AnimalCell) collectionView.DequeueReusableCell (animalCellId, indexPath);

            var animal = animals [indexPath.Row];
            animalCell.Image = animal.Image;

            return animalCell;
        }
开发者ID:7sharp9,项目名称:monotouch-samples,代码行数:9,代码来源:SimpleCollectionViewController.cs

示例15: GetCell

        public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
        {
            var cell = collectionView.DequeueReusableCell (FAViewCell.Key, indexPath) as FAViewCell;
            var fa = _searchresult [indexPath.Row];
            var width = _fasize.Size ().Width - 50;
            cell.Init (fa, width);

            return cell;
        }
开发者ID:lduchosal,项目名称:FontAwesone,代码行数:9,代码来源:FAViewController.cs


注:本文中的UICollectionView.DequeueReusableCell方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。