BadgeElement BadgeElement Class


This element can be used to show an image with some text

public class BadgeElement : MonoTouch.Dialog.Element, MonoTouch.Dialog.IElementSizing
type BadgeElement = class
    inherit Element
    interface IElementSizing


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


BadgeElement(UIImage, String) BadgeElement(UIImage, String)
BadgeElement(UIImage, String, Action) BadgeElement(UIImage, String, Action)


Accessory Accessory
Caption Caption

The caption to display for this given element

(Inherited from Element)
ContentMode ContentMode
LineBreakMode LineBreakMode
Lines Lines
Parent Parent

Handle to the container object.

(Inherited from Element)


CellKey CellKey

Subclasses that override the GetCell method should override this method as well

(Inherited from Element)
Font Font
IndexPath IndexPath

Returns the IndexPath of a given element. This is only valid for leaf elements, it does not work for a toplevel RootElement or a Section of if the Element has not been attached yet.

(Inherited from Element)


Deselected(DialogViewController, UITableView, NSIndexPath) Deselected(DialogViewController, UITableView, NSIndexPath) Inherited from Element
Dispose() Dispose() Inherited from Element
Dispose(Boolean) Dispose(Boolean)
GetActiveCell() GetActiveCell() Inherited from Element
GetCell(UITableView) GetCell(UITableView)
GetContainerTableView() GetContainerTableView() Inherited from Element
GetHeight(UITableView, NSIndexPath) GetHeight(UITableView, NSIndexPath)
GetImmediateRootElement() GetImmediateRootElement()

If the cell is attached will return the immediate RootElement

(Inherited from Element)
MakeCalendarBadge(UIImage, String, String) MakeCalendarBadge(UIImage, String, String)
Matches(String) Matches(String)

Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string.

(Inherited from Element)
Selected(DialogViewController, UITableView, NSIndexPath) Selected(DialogViewController, UITableView, NSIndexPath)
Summary() Summary()

Returns a summary of the value represented by this object, suitable for rendering as the result of a RootElement with child objects.

(Inherited from Element)


Tapped Tapped

Applies to