本文整理汇总了C#中UIKit.DequeueReusableCell方法的典型用法代码示例。如果您正苦于以下问题:C# UIKit.DequeueReusableCell方法的具体用法?C# UIKit.DequeueReusableCell怎么用?C# UIKit.DequeueReusableCell使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIKit
的用法示例。
在下文中一共展示了UIKit.DequeueReusableCell方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetCell
public override UIKit.UITableViewCell GetCell (UIKit.UITableView tv)
{
// try and dequeue a cell object to reuse. if one doesn't exist, create a new one
ExhibitorCell cell = tv.DequeueReusableCell (cellKey) as ExhibitorCell;
if (cell == null) {
cell = new UI.CustomElements.ExhibitorCell (exhibitor);
}
cell.UpdateCell(exhibitor);
return cell;
}
示例2: CreateCell
protected override UITableViewCell CreateCell (UIKit.UITableView tv)
{
string summary = GetSummary(tv);
var cellStyle = (String.IsNullOrEmpty(summary))?UITableViewCellStyle.Default : UITableViewCellStyle.Subtitle;
string key = rkey + (cellStyle.ToString());
var cell = tv.DequeueReusableCell(key) as VerticalLayoutCell;
if (cell == null) {
cell = new VerticalLayoutCell(cellStyle, key);
}
return cell;
}
示例3: GetCell
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
{
var cell = tv.DequeueReusableCell (CellKey);
if (SignInButton == null) {
SignInButton = new Google.SignIn.SignInButton {
Frame = new CoreGraphics.CGRect (20, 0, tv.Frame.Width - 40, 44),
Enabled = this.Enabled,
};
}
if (cell == null) {
cell = new UIKit.UITableViewCell (UIKit.UITableViewCellStyle.Default, CellKey);
cell.Add (SignInButton);
}
return cell;
}
示例4: GetCell
public override UIKit.UITableViewCell GetCell(UIKit.UITableView tv)
{
if(selectedIndex < Options.Length)
Detail = Options[selectedIndex].Value;
var cell = tv.DequeueReusableCell (skeyvalue);
if (cell == null) {
cell = new UITableViewCell (UITableViewCellStyle.Value1, skeyvalue);
cell.SelectionStyle = UITableViewCellSelectionStyle.Blue;
}
cell.Accessory = UITableViewCellAccessory.None;
cell.TextLabel.Text = Caption;
cell.TextLabel.BackgroundColor = UIColor.Clear;
// The check is needed because the cell might have been recycled.
if (cell.DetailTextLabel != null)
cell.DetailTextLabel.Text = Detail;
return cell;
}