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


C# UITableViewCell.StyleAsSettingsTableCell方法代码示例

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


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

示例1: GetCell

		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			if (indexPath.Section == 0) 
				return base.GetCell(tableView, indexPath);
			
			var cell = new UITableViewCell(UITableViewCellStyle.Default, string.Format("RadioButtonTableCell{0}{1}", indexPath.Section, indexPath.Row)) {
				AccessoryView = null
			};
			
			if (IsNumberOfCommitters(indexPath.Section)) 
			{
				if (indexPath.Row == countSelected) 
					cell.AccessoryView = RadioGroupTableViewSource.BlackAccessoryCheckmark();
				cell.TextLabel.Text = string.Format("Top {0} committers", countValues[indexPath.Row]);
				countCells.Insert(indexPath.Row, cell);
			}
			
			if (IsTimePeriod(indexPath.Section))
			{
				if (indexPath.Row == timeSelected) 
					cell.AccessoryView = RadioGroupTableViewSource.BlackAccessoryCheckmark();
				cell.TextLabel.Text = string.Format("Past {0}", timeValues[indexPath.Row].ToSuffix());
				timeCells.Insert(indexPath.Row, cell);
			}
			
			cell.StyleAsSettingsTableCell();
			
			return cell;
		}
开发者ID:Smeedee,项目名称:Smeedee-Mobile,代码行数:29,代码来源:TopCommittersConfigTableViewController.xib.cs

示例2: GetCell

		public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath)
		{
			int section = indexPath.Section;
			int row = indexPath.Row;
			
			if (section == 0) 
				return base.GetCell(tableView, indexPath);
			
			if (row == 0)
			{
				topSwitch = new DarkSwitch(model.BrokenBuildsAtTop);
				topSwitch.ValueChanged += delegate {
					model.BrokenBuildsAtTop = topSwitch.On;
				};
				
				var cell = new UITableViewCell(UITableViewCellStyle.Default, "SimpleCheckboxCell") {
					AccessoryView = topSwitch, 
				};
				cell.TextLabel.Text = "Broken builds first";
				
				cell.StyleAsSettingsTableCell();
				cell.SelectionStyle = UITableViewCellSelectionStyle.None;
				return cell;
			}
			else
			{
				var cell = new UITableViewCell(UITableViewCellStyle.Default, "SubtitleDisclosureCell");
				cell.AccessoryView = new DisclosureIndicatorView();
				cell.TextLabel.Text = "Build order";
				
				// TODO: Gray text to the right of what is currently selected
				cell.StyleAsSettingsTableCell();
				return cell;
			}
		}
开发者ID:Smeedee,项目名称:Smeedee-Mobile,代码行数:35,代码来源:BuildStatusConfigTableViewController.xib.cs

示例3: GetCell

		public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
		{
			darkSwitch = new DarkSwitch(widgetModel.Enabled);
			darkSwitch.ValueChanged += delegate {
				widgetModel.Enabled = darkSwitch.On;
			};
			
			var cell = new UITableViewCell(UITableViewCellStyle.Default, "EnableWidgetUISwitch") {
				AccessoryView = darkSwitch, 
			};
			cell.TextLabel.Text = "Enabled";
			cell.StyleAsSettingsTableCell();
			cell.SelectionStyle = UITableViewCellSelectionStyle.None;
			
			return cell;
		}
开发者ID:Smeedee,项目名称:Smeedee-Mobile,代码行数:16,代码来源:WidgetConfigTableViewSource.cs

示例4: GetCell

		public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
		{
			if (indexPath.Section == 0) 
				return base.GetCell(tableView, indexPath);
			
			emptySwitch = new DarkSwitch(model.HighlightEmpty);
			emptySwitch.ValueChanged += delegate {
				model.HighlightEmpty = emptySwitch.On;
			};
			
			var cell = new UITableViewCell(UITableViewCellStyle.Default, "SimpleCheckboxCell") {
				AccessoryView = emptySwitch, 
				SelectionStyle = UITableViewCellSelectionStyle.None
			};
			
			cell.TextLabel.Text = "Highlight empty commits";
			cell.StyleAsSettingsTableCell();
			cell.SelectionStyle = UITableViewCellSelectionStyle.None;
			return cell;
		}
开发者ID:Smeedee,项目名称:Smeedee-Mobile,代码行数:20,代码来源:LatestCommitsConfigTableViewController.xib.cs


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