Edit

Share via


EntryAttribute Class

Definition

Apply this attribute to strings to produce an editing row.

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field, Inherited=false)]
public class EntryAttribute : Attribute
type EntryAttribute = class
    inherit Attribute
Inheritance
EntryAttribute
Derived
Attributes

Remarks

You can specify the kind of UIKeyboardType for data entry by setting KeyboardType property.

class Login {
	[Entry ("Enter your name")]
	string Name; 

	[Entry ("Enter your password")]
	[Password]
	string Password;

	[Entry (Placeholder="Your numeric Pin", KeyboardType=UIKeyboardType.NumberPad]
	string Pin;
}

Constructors

EntryAttribute()

Public constructor

EntryAttribute(String)

Public constructor

Fields

AutocapitalizationType

Controls the autocapitalization kind for the entry.

AutocorrectionType

Controls the autocorrection type for the entry.

ClearButtonMode

Controls whether the standard clear button widget appears on the entry.

KeyboardType

Specifies the kind of keyboard type to use for the data entry

Placeholder

The placeholder to display if the input string is empty

Applies to