C# Class MonoMobile.Dialog.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
Mostra file Open project: moljac/MonoMobile.Dialog

Public Properties

Property Type Description
Accessory UITableViewCellAccessory
ContentMode UIViewContentMode
LineBreakMode UILineBreakMode
Lines int

Public Methods

Method Description
BadgeElement ( UIImage badgeImage, string cellText ) : System
BadgeElement ( UIImage badgeImage, string cellText, NSAction tapped ) : System
GetCell ( UITableView tv ) : UITableViewCell
GetHeight ( UITableView tableView, NSIndexPath indexPath ) : float
MakeCalendarBadge ( UIImage template, string smallText, string bigText ) : UIImage
Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

BadgeElement() public method

public BadgeElement ( UIImage badgeImage, string cellText ) : System
badgeImage UIImage
cellText string
return System

BadgeElement() public method

public BadgeElement ( UIImage badgeImage, string cellText, NSAction tapped ) : System
badgeImage UIImage
cellText string
tapped NSAction
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetCell() public method

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
return UITableViewCell

GetHeight() public method

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

MakeCalendarBadge() public static method

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

Selected() public method

public Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc DialogViewController
tableView UITableView
path NSIndexPath
return void

Property Details

Accessory public_oe property

public UITableViewCellAccessory Accessory
return UITableViewCellAccessory

ContentMode public_oe property

public UIViewContentMode ContentMode
return UIViewContentMode

LineBreakMode public_oe property

public UILineBreakMode LineBreakMode
return UILineBreakMode

Lines public_oe property

public int Lines
return int