C# Class MonoMobile.Dialog.EntryElement

An element that can be used to enter text.
This element can be used to enter text both regular and password protected entries. The Text fields in a given section are aligned with each other.
Inheritance: Element
Mostra file Open project: moljac/MonoMobile.Dialog Class Usage Examples

Public Methods

Method Description
BecomeFirstResponder ( bool animated ) : void

Makes this cell the first responder (get the focus)

EntryElement ( string caption, string value ) : System
EntryElement ( string caption, string placeholder_hint, string value ) : System

Constructs an EntryElement with the given caption, placeholder and initial value.

EntryElement ( string caption, string placeholder, string value, bool isPassword ) : System

Constructs an EntryElement for password entry with the given caption, placeholder and initial value.

FetchValue ( ) : void

Copies the value from the UITextField in the EntryElement to the Value property and raises the Changed event if necessary.

GetCell ( UITableView tv ) : UITableViewCell
GetControl ( ) : FrameworkElement

MT.D: public override UITableViewCell GetCell(UITableView tv) MA.D: public override View GetView(Context context, View convertView, ViewGroup parent) WP.D: Brainstorming needed! Control NOGO FrameworkElement GO! TODO: see more!

Matches ( string text ) : bool
ResignFirstResponder ( bool animated ) : void
Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath indexPath ) : void

Protected Methods

Method Description
CreateTextField ( RectangleF frame ) : UITextField
Dispose ( bool disposing ) : void

Private Methods

Method Description
ComputeEntryPosition ( UITableView tv, UITableViewCell cell ) : SizeF
ExecutePlatformCode ( ) : void

Method Details

BecomeFirstResponder() public method

Makes this cell the first responder (get the focus)
public BecomeFirstResponder ( bool animated ) : void
animated bool /// Whether scrolling to the location of this cell should be animated ///
return void

CreateTextField() protected method

protected CreateTextField ( RectangleF frame ) : UITextField
frame System.Drawing.RectangleF
return UITextField

Dispose() protected method

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

EntryElement() public method

public EntryElement ( string caption, string value ) : System
caption string
value string
return System

EntryElement() public method

Constructs an EntryElement with the given caption, placeholder and initial value.
public EntryElement ( string caption, string placeholder_hint, string value ) : System
caption string /// The caption to use ///
placeholder_hint string
value string /// Initial value. ///
return System

EntryElement() public method

Constructs an EntryElement for password entry with the given caption, placeholder and initial value.
public EntryElement ( string caption, string placeholder, string value, bool isPassword ) : System
caption string /// The caption to use. ///
placeholder string /// Placeholder to display when no value is set. ///
value string /// Initial value. ///
isPassword bool /// True if this should be used to enter a password. ///
return System

FetchValue() public method

Copies the value from the UITextField in the EntryElement to the Value property and raises the Changed event if necessary.
public FetchValue ( ) : void
return void

GetCell() public method

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

GetControl() public method

MT.D: public override UITableViewCell GetCell(UITableView tv) MA.D: public override View GetView(Context context, View convertView, ViewGroup parent) WP.D: Brainstorming needed! Control NOGO FrameworkElement GO! TODO: see more!
public GetControl ( ) : FrameworkElement
return FrameworkElement

Matches() public method

public Matches ( string text ) : bool
text string
return bool

ResignFirstResponder() public method

public ResignFirstResponder ( bool animated ) : void
animated bool
return void

Selected() public method

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