BadgeElement Class

Definition

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
Inheritance
BadgeElement
Implements

Remarks

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

Constructors

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

Fields

Accessory
Caption

The caption to display for this given element

(Inherited from Element)
ContentMode
LineBreakMode
Lines
Parent

Handle to the container object.

(Inherited from Element)

Properties

CellKey

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

(Inherited from Element)
Font
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)

Methods

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

If the cell is attached will return the immediate RootElement

(Inherited from Element)
MakeCalendarBadge(UIImage, String, 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)
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)

Events

Tapped

Applies to