Xamarin.Forms.Core
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.InputView
Xamarin.Forms.IElementConfiguration<Xamarin.Forms.Entry>
Xamarin.Forms.IEntryController
Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._EntryRenderer))
A control that can edit a single line of text.
Entry is a single line text entry. It is best used for collecting small discrete pieces of information, like usernames and passwords.
The following example creates a new username and password set of entries.
The FormsGallery sample, which can be found on the Sample Applications page, has an EntryDemoPage.cs file. This file contains a longer and more complicated example.
XAML for Xamarin.Forms supports the following properties for the class:
Property
Value
-
IsPassword
true to indicate that the is a password field. Otherwise, false.
-
Placeholder
The default text that will appear in the control.
-
Text
The initial text that will appear in the entry.
-
TextColor
A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red.
Constructor
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Initializes a new instance of the Entry class.
Event
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.EventHandler
Occurs when the user finalizes the text in an entry with the return key.
This finalization will usually but not always be accompanied by IsFocused being set to false.
Property
1.5.0.0
2.0.0.0
Xamarin.Forms.FontAttributes
Gets a value that indicates whether the font for the Entry element text is bold, italic, or neither.
To be added.
To be added.
Field
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the FontAttributes property.
To be added.
Property
1.5.0.0
2.0.0.0
System.String
Gets the font family for the Entry element text.
To be added.
To be added.
Field
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the FontFamily property.
To be added.
Property
1.5.0.0
2.0.0.0
Xamarin.Forms.TypeConverter(typeof(Xamarin.Forms.FontSizeConverter))
System.Double
Gets the size of the font for the Entry element text.
To be added.
To be added.
Field
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the property.
To be added.
Property
1.5.0.0
2.0.0.0
Xamarin.Forms.TextAlignment
Gets or sets the horizontal text alignment.
To be added.
To be added.
Field
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the HorizontalTextAlignment property.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.Boolean
Gets or sets a value that indicates if the entry should visually obscure typed text. This is a bindable property.
if the element is a password box; otherwise, . Default value is .
Toggling this value does not reset the contents of the entry, therefore it is advisable to be careful about setting IsPassword to false, as it may contain sensitive information.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the IsPassword bindable property.
Method
2.0.0.0
Xamarin.Forms.IPlatformElementConfiguration<T,Xamarin.Forms.Entry>
Xamarin.Forms.IConfigPlatform
To be added.
Returns the platform-specific instance of this , on which a platform-specific method may be called.
To be added.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.String
Gets or sets the placeholder text shown when the entry is null or empty. This is a bindable property.
The placeholder text shown when is null or empty. The default value is .
Property
1.5.0.0
2.0.0.0
Xamarin.Forms.Color
Gets or sets the color of the placeholder text.
To be added.
To be added.
Field
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Backing store for the property.
To be added.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the Placeholder bindable property.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.String
Gets or sets the text of the entry. This is a bindable property.
A string containing the text of the entry. The default value is .
Setting this property will cause the event to be emitted.
Event
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
System.EventHandler<Xamarin.Forms.TextChangedEventArgs>
Event that is raised when the text in this element is changed.
To be added.
Property
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.Color
Gets or sets the for the text of the Entry. This is a bindable property.
The of the text.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the TextColor bindable property.
Field
1.0.0.0
1.1.0.0
1.2.0.0
1.3.0.0
1.4.0.0
1.5.0.0
2.0.0.0
Xamarin.Forms.BindableProperty
Identifies the Text bindable property.
Method
2.0.0.0
System.Void
This interface is for internal use by platform renderers.
To be added.