DateTimeElement DateTimeElement Class

Definition

An element that can be used to edit dates and times.

public class DateTimeElement : MonoTouch.Dialog.StringElement
type DateTimeElement = class
    inherit StringElement
Inheritance
Derived

Remarks

This is the base class for both the DateElement and the TimeElement.

Constructors

DateTimeElement(String, DateTime) DateTimeElement(String, DateTime)

Constructs the DateElement.

Fields

Alignment Alignment Inherited from StringElement
BackgroundColor BackgroundColor
Caption Caption

The caption to display for this given element

(Inherited from Element)
datePicker datePicker
DateValue DateValue

The current DateTime value in the editor.

fmt fmt

An internal date formatter that has been preconfigured for short date time renderings.

MinuteInterval MinuteInterval
Parent Parent

Handle to the container object.

(Inherited from Element)
Value Value Inherited from StringElement

Methods

CreatePicker() CreatePicker()
Deselected(DialogViewController, UITableView, NSIndexPath) Deselected(DialogViewController, UITableView, NSIndexPath) Inherited from Element
Dispose() Dispose() Inherited from Element
Dispose(Boolean) Dispose(Boolean)

Releases the resources associated with this DateTimeElement.

FormatDate(DateTime) FormatDate(DateTime)

Formats the date, the return is used as the Value for the cell rendering.

GetActiveCell() GetActiveCell() Inherited from Element
GetCell(UITableView) GetCell(UITableView)
GetContainerTableView() GetContainerTableView() Inherited from Element
GetDateWithKind(DateTime) GetDateWithKind(DateTime)

Returns either the provided date time if the DateTimeKind is specified, otherwise makes ita DateTimeKind.Local

GetImmediateRootElement() GetImmediateRootElement()

If the cell is attached will return the immediate RootElement

(Inherited from Element)
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 StringElement)
Selected(DialogViewController, UITableView, NSIndexPath) Selected(DialogViewController, UITableView, NSIndexPath)
Summary() Summary() Inherited from StringElement

Events

DateSelected DateSelected

Event raised when a new date is selected by the picker.

Tapped Tapped Inherited from StringElement

Properties

CellKey CellKey

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

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

Applies to