本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: GetCell
public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath)
{
var cell = (CVCell)collectionView.DequeueReusableCell (cellId, indexPath);
cell.Text = indexPath.Row.ToString ();
return cell;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}