C# Class CrossUI.iOS.Dialog.Elements.BadgeElement

This element can be used to show an image with some text
The font can be configured after the element has been created by assignign to the Font property; If you want to render multiple lines of text, set the MultiLine property to true. If no font is specified, it will default to Helvetica 17. A static method MakeCalendarBadge is provided that can render a calendar badge like the iPhone OS. It will compose the text on top of the image which is expected to be 57x57
Inheritance: Element, IElementSizing
显示文件 Open project: MvvmCross/MvvmCross

Public Methods

Method Description
BadgeElement ( UIKit.UIImage badgeImage, string cellText, System.Action tapped = null ) : CoreGraphics
GetHeight ( UITableView tableView, NSIndexPath indexPath ) : nfloat
MakeCalendarBadge ( UIKit.UIImage template, string smallText, string bigText ) : UIKit.UIImage

Protected Methods

Method Description
GetCellImpl ( UITableView tv ) : UITableViewCell

Method Details

BadgeElement() public method

public BadgeElement ( UIKit.UIImage badgeImage, string cellText, System.Action tapped = null ) : CoreGraphics
badgeImage UIKit.UIImage
cellText string
tapped System.Action
return CoreGraphics

GetCellImpl() protected method

protected GetCellImpl ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

GetHeight() public method

public GetHeight ( UITableView tableView, NSIndexPath indexPath ) : nfloat
tableView UITableView
indexPath NSIndexPath
return nfloat

MakeCalendarBadge() public static method

public static MakeCalendarBadge ( UIKit.UIImage template, string smallText, string bigText ) : UIKit.UIImage
template UIKit.UIImage
smallText string
bigText string
return UIKit.UIImage