See Also: EntryCell Members
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:
| Property | Value |
|---|---|
| Keyboard | A 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. |
| Placeholder | The 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. |
