本文整理汇总了C#中UITableViewCellStyle类的典型用法代码示例。如果您正苦于以下问题:C# UITableViewCellStyle类的具体用法?C# UITableViewCellStyle怎么用?C# UITableViewCellStyle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UITableViewCellStyle类属于命名空间,在下文中一共展示了UITableViewCellStyle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PickerViewCell
/// <summary>
/// Initializes a new instance of the <see cref="PickerCells.PickerViewCell"/> class.
/// </summary>
/// <param name="items">Items.</param>
public PickerViewCell(List<String> items, UITableViewCellStyle style = UITableViewCellStyle.Default)
: base(style)
{
if (items != null)
{
var simps = new Dictionary<int,PickerViewCellComponent>();
simps[0] = new PickerViewCellComponent()
{
Width = -1,
Items = new List<PickerViewCellItem>()
{
}
};
foreach (var aItem in items)
{
simps[0].Items.Add(new PickerViewCellItem()
{
SelectedValue = aItem,
DisplayValue = aItem,
});
}
mDataDict = simps;
}
SecondarySetup();
}
示例2: SessionCell
public SessionCell(UITableViewCellStyle style, NSString ident, MonkeySpace.Core.Session session, string big, string small)
: base(style, ident)
{
SelectionStyle = UITableViewCellSelectionStyle.Blue;
bigLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
BackgroundColor = UIColor.Clear
};
smallLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
Font = smallFont,
TextColor = UIColor.DarkGray,
BackgroundColor = UIColor.Clear
};
button = UIButton.FromType (UIButtonType.Custom);
button.TouchDown += delegate {
UpdateImage (ToggleFavorite ());
};
UpdateCell (session, big, small);
ContentView.Add (bigLabel);
ContentView.Add (smallLabel);
ContentView.Add (button);
}
示例3: PatientTableViewCell
public PatientTableViewCell (UITableViewCellStyle style, NSString ident, Patient showPatient) : base (style, ident)
{
this.SelectionStyle = UITableViewCellSelectionStyle.Blue;
showPatient.ItemUpdated += (sender, args) => this.UpdateCell(showPatient);
this.nameLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
Font = bigFont,
BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
};
this.companyLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
Font = smallFont,
TextColor = UIColor.DarkGray,
BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
};
this.image = new UIImageView();
this.UpdateCell(showPatient);
this.ContentView.Add (this.nameLabel);
this.ContentView.Add (this.companyLabel);
this.ContentView.Add (this.image);
}
示例4: SessionCell
const int buttonSpace = 45; //24;
public SessionCell (UITableViewCellStyle style, NSString ident, Session showSession, string big, string small) : base (style, ident)
{
SelectionStyle = UITableViewCellSelectionStyle.Blue;
titleLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
};
speakerLabel = new UILabel () {
TextAlignment = UITextAlignment.Left,
Font = smallFont,
TextColor = UIColor.DarkGray,
BackgroundColor = UIColor.FromWhiteAlpha (0f, 0f)
};
locationImageView = new UIImageView();
locationImageView.Image = building;
button = UIButton.FromType (UIButtonType.Custom);
button.TouchDown += delegate {
UpdateImage (ToggleFavorite ());
if (AppDelegate.IsPad) {
NSObject o = new NSObject();
NSDictionary progInfo = NSDictionary.FromObjectAndKey(o, new NSString("FavUpdate"));
NSNotificationCenter.DefaultCenter.PostNotificationName(
"NotificationFavoriteUpdated", o, progInfo);
}
};
UpdateCell (showSession, big, small);
ContentView.Add (titleLabel);
ContentView.Add (speakerLabel);
ContentView.Add (button);
ContentView.Add (locationImageView);
}
示例5: PatientCell
public PatientCell(UITableViewCellStyle style, NSString ident, Patient showSpeaker)
: base(style, ident)
{
SelectionStyle = UITableViewCellSelectionStyle.Blue;
nameLabel = new UILabel()
{
TextAlignment = UITextAlignment.Left,
Font = bigFont,
BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f)
};
companyLabel = new UILabel()
{
TextAlignment = UITextAlignment.Left,
Font = smallFont,
TextColor = UIColor.DarkGray,
BackgroundColor = UIColor.FromWhiteAlpha(0f, 0f)
};
image = new UIImageView();
UpdateCell(showSpeaker);
ContentView.Add(nameLabel);
ContentView.Add(companyLabel);
ContentView.Add(image);
}
示例6: MvxBindableTableViewCell
public MvxBindableTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions,
UITableViewCellStyle cellStyle, NSString cellIdentifier,
UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None)
: base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory)
{
InitialiseImageHelper();
}
示例7: MvxBindableTableViewSource
public MvxBindableTableViewSource(UITableView tableView, UITableViewCellStyle style, NSString cellIdentifier, IEnumerable<MvxBindingDescription> descriptions)
{
_tableView = tableView;
_cellStyle = style;
_cellIdentifier = cellIdentifier;
_bindingDescriptions = descriptions;
}
示例8: CustomOwnerDrawnElement
public CustomOwnerDrawnElement (UITableViewCellStyle style, string cellIdentifier,
UITableViewCellSelectionStyle selectionStyle, UITableViewCellAccessory accesory)
: this(style, cellIdentifier)
{
this.SelectionStyle = selectionStyle;
this.Accessory = accesory;
}
示例9: TableScreen
/// <summary>
/// You specify the table style in the constructor when using a UITableViewController
/// </summary>
public TableScreen (UITableViewStyle tableStyle, UITableViewCellStyle cellStyle
, UITableViewCellAccessory cellAccessory)
: base (tableStyle)
{
this.cellStyle = cellStyle;
this.cellAccessory = cellAccessory;
}
示例10: PrimaryCell
public PrimaryCell( CGSize parentSize, UITableViewCellStyle style, string cellIdentifier ) : base( style, cellIdentifier )
{
BackgroundColor = Rock.Mobile.UI.Util.GetUIColor( ControlStylingConfig.BG_Layer_Color );
SelectionStyle = UITableViewCellSelectionStyle.None;
Image = new UIImageView( );
Image.BackgroundColor = UIColor.Yellow;
Image.ContentMode = UIViewContentMode.ScaleAspectFill;
Image.Layer.AnchorPoint = CGPoint.Empty;
AddSubview( Image );
// Banner Image
Image.Image = new UIImage( NSBundle.MainBundle.BundlePath + "/" + PrivateConnectConfig.MainPageHeaderImage );
Image.SizeToFit( );
// resize the image to fit the width of the device
nfloat imageAspect = Image.Bounds.Height / Image.Bounds.Width;
Image.Frame = new CGRect( 0, 0, parentSize.Width, parentSize.Width * imageAspect );
Title = new UILabel( );
Title.Text = ConnectStrings.Main_Connect_Header;
Title.Font = Rock.Mobile.PlatformSpecific.iOS.Graphics.FontManager.GetFont( ControlStylingConfig.Font_Bold, ControlStylingConfig.Large_FontSize );
Title.Layer.AnchorPoint = CGPoint.Empty;
Title.TextColor = Rock.Mobile.UI.Util.GetUIColor( ControlStylingConfig.TextField_ActiveTextColor );
Title.LineBreakMode = UILineBreakMode.TailTruncation;
Title.TextAlignment = UITextAlignment.Center;
Title.Frame = new CGRect( 5, Image.Frame.Bottom, parentSize.Width - 10, 0 );
Title.SizeToFit( );
AddSubview( Title );
}
示例11: BadgeTableViewCell
public BadgeTableViewCell(UITableViewCellStyle style, string reuseIdentifier) : base(style, reuseIdentifier)
{
_badgeView = new BadgeView(new RectangleF(0.0f, 0.0f, 55.0f, 20.0f));
_badgeView.BackgroundColor = UIColor.Clear;
_badgeView.BadgeAlignment = BadgeViewAlignment.Right;
AccessoryView = _badgeView;
}
示例12: DropdownMenuTableViewCell
public DropdownMenuTableViewCell(UITableViewCellStyle style, string reuseIdentifier, DropdownMenuConfiguration configuration)
: base(style, reuseIdentifier)
{
this.Configuration = configuration;
// Setup cell
CellContentFrame = new CGRect(0, 0, UIScreen.MainScreen.Bounds.Width, this.Configuration.CellHeight);
this.ContentView.BackgroundColor = this.Configuration.CellBackgroundColor;
this.SelectionStyle = UITableViewCellSelectionStyle.None;
this.TextLabel.TextAlignment = UITextAlignment.Left;
this.TextLabel.TextColor = this.Configuration.CellTextLabelColor;
this.TextLabel.Font = this.Configuration.CellTextLabelFont;
this.TextLabel.Frame = new CGRect(20, 0, CellContentFrame.Width, CellContentFrame.Height);
// Checkmark icon
this.CheckMarkIcon = new UIImageView(new CGRect(CellContentFrame.Width - 50, (CellContentFrame.Height - 30)/2, 30, 30));
this.CheckMarkIcon.Hidden = true;
this.CheckMarkIcon.Image = this.Configuration.CheckMarkImage;
this.CheckMarkIcon.ContentMode = UIViewContentMode.ScaleAspectFill;
this.ContentView.AddSubview (this.CheckMarkIcon);
// Separator for cell
var separator = new DropdownMenuTableCellContentView(CellContentFrame);
separator.BackgroundColor = UIColor.Clear;
this.ContentView.AddSubview (separator);
}
示例13: CreateTableViewCell
// We need to create our own cell so we can position the image view appropriately
protected override UITableViewCell CreateTableViewCell(UITableViewCellStyle style, string key)
{
if (UsePinnedImage)
return new PinnedImageTableViewCell(style, key);
else
return base.CreateTableViewCell(style, key);
}
示例14: MovieCell
public MovieCell(UITableViewCellStyle style, string reuseId)
: base(style, reuseId)
{
SelectionStyle = UITableViewCellSelectionStyle.None;
_thumbnail = new UIImageView {
BackgroundColor = UIColor.Gray
};
ContentView.AddSubview(_thumbnail);
_movieTitle = new UILabel {
TextColor = UIColor.Blue,
Font = Fonts.Bold14
};
ContentView.AddSubview(_movieTitle);
_freshImg = ImageInitializer.InitImageView(ImgPath.Indicators.FreshSmall);
_rottenImg = ImageInitializer.InitImageView(ImgPath.Indicators.RottenSmall);
ContentView.AddSubviews(_freshImg, _rottenImg);
// _freshImg.Hidden = _rottenImg.Hidden = true;
_criticScore = InitInfoLabel();
_actors = InitInfoLabel();
_mppaRuntime = InitInfoLabel();
}
示例15: MvxStandardTableViewCell
public MvxStandardTableViewCell(IEnumerable<MvxBindingDescription> bindingDescriptions,
UITableViewCellStyle cellStyle, NSString cellIdentifier,
UITableViewCellAccessory tableViewCellAccessory = UITableViewCellAccessory.None)
: base(bindingDescriptions, cellStyle, cellIdentifier, tableViewCellAccessory)
{
this.InitializeImageLoader();
}