Xamarin.Forms.EntryCell Class
A Xamarin.Forms.Cell with a label and a single line text entry field.

See Also: EntryCell Members

Syntax

public class EntryCell : Cell

Remarks

The following example shows a basic use.

C# Example

using System;
using Xamarin.Forms;

namespace FormsGallery
{
    class EntryCellDemoPage : ContentPage
    {
        public EntryCellDemoPage()
        {
            Label header = new Label
            {
                Text = "EntryCell",
                Font = Font.BoldSystemFontOfSize(50),
                HorizontalOptions = LayoutOptions.Center
            };

            TableView tableView = new TableView
            {
                Intent = TableIntent.Form,
                Root = new TableRoot
                {
                    new TableSection
                    {
                        new EntryCell
                        {
                            Label = "EntryCell:",
                            Placeholder = "Type Text Here"
                        }
                    }
                }
            };

            // Accomodate iPhone status bar.
            this.Padding = new Thickness(10, Device.OnPlatform(20, 0, 0), 10, 5);

            // Build the page.
            this.Content = new StackLayout
            {
                Children = 
                {
                    header,
                    tableView
                }
            };
        }
    }
}

The Xamarin.Forms.ActivityIndicator class has the following XAML properties:

PropertyValue
KeyboardA Xamarin.Forms.Keyboard property name that indicates which keyboard to present to the user when editing text.
Label

The text that is presented next to the entry area in the Xamarin.Forms.EntryCell.

LabelColor

A color specification, with or without the prefix, "Color". For example, "Color.Red" and "Red" both specify the color red.

PlaceholderThe default text that will appear in the control when it is empty.
Text

The initial text that will appear in the editor.

XAlign

Center, End, or Start, to indicate the placement of the text that is entered by the user.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0