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
Afficher le fichier Open project: MvvmCross/MvvmCross

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
GetCellImpl ( UITableView tv ) : UITableViewCell

Method Details

BadgeElement() public méthode

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

GetCellImpl() protected méthode

protected GetCellImpl ( UITableView tv ) : UITableViewCell
tv UITableView
Résultat UITableViewCell

GetHeight() public méthode

public GetHeight ( UITableView tableView, NSIndexPath indexPath ) : nfloat
tableView UITableView
indexPath NSIndexPath
Résultat nfloat

MakeCalendarBadge() public static méthode

public static MakeCalendarBadge ( UIKit.UIImage template, string smallText, string bigText ) : UIKit.UIImage
template UIKit.UIImage
smallText string
bigText string
Résultat UIKit.UIImage