EntryCell Class

Definition

A Cell with a label and a single line text entry field.

public ref class EntryCell : Microsoft::Maui::Controls::Cell, Microsoft::Maui::Controls::IEntryCellController, Microsoft::Maui::ITextAlignment
public class EntryCell : Microsoft.Maui.Controls.Cell, Microsoft.Maui.Controls.IEntryCellController, Microsoft.Maui.ITextAlignment
type EntryCell = class
    inherit Cell
    interface IEntryCellController
    interface ITextAlignment
Public Class EntryCell
Inherits Cell
Implements IEntryCellController, ITextAlignment
Inheritance
Implements

Remarks

The following example shows a basic use.

using System;
using Microsoft.Maui.Controls;

namespace FormsGallery
{
    class EntryCellDemoPage : ContentPage
    {
        public EntryCellDemoPage()
        {
            Label header = new Label
            {
                Text = "EntryCell",
                FontSize = Device.GetNamedSize (NamedSize.Large, typeof(EntryCell)),
                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
                }
            };
        }
    }
}

Constructors

EntryCell()

Fields

DefaultCellHeight

The default height of cells.

(Inherited from Cell)
HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment bindable property.

KeyboardProperty

Identifies the Keyboard bindable property.

LabelColorProperty

Identifies the LabelColor bindable property.

LabelProperty

Identifies the Label bindable property.

PlaceholderProperty

Identifies the Placeholder bindable property,

TextProperty

Identifies the Text bindable property.

VerticalTextAlignmentProperty

Properties

AutomationId

Gets or sets a value that allows the automation framework to find and interact with this element.

(Inherited from Element)
BindingContext

Gets or sets object that contains the properties that will be targeted by the bound properties that belong to this BindableObject.

(Inherited from BindableObject)
ClassId

Gets or sets a value used to identify a collection of semantically similar elements.

(Inherited from Element)
ContextActions

Gets a list of menu items to display when the user performs the device-specific context gesture on the Cell.

(Inherited from Cell)
Dispatcher (Inherited from BindableObject)
EffectControlProvider

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
Effects

A list of the effects that are applied to this item.

(Inherited from Element)
Handler (Inherited from Element)
HasContextActions

Gets a value that indicates whether the cell has at least one menu item in its ContextActions list property.

(Inherited from Cell)
Height

Gets or sets the height of the Cell.

(Inherited from Cell)
HorizontalTextAlignment

Gets or sets the horizontal alignement of the Text property. This is a bindable property.

Id

Gets a value that can be used to uniquely identify an element through the run of an application.

(Inherited from Element)
IsContextActionsLegacyModeEnabled (Inherited from Cell)
IsEnabled

Gets or sets the IsEnabled state of the Cell. This is a bindable property.

(Inherited from Cell)
Keyboard

Gets or sets the Keyboard to display while editing the EntryCell. This is a bindable property.

Label

Gets or sets the fixed text presented next to the Entry in the EntryCell. This is a bindable property.

LabelColor

Gets or sets the Color used for rendering the Label property. This is a bindable property.

LogicalChildren
Obsolete.

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
Parent

Gets or sets the parent element of the element.

(Inherited from Element)
Placeholder

Gets or sets the placeholder text displayed in the Entry when the Text is null or empty. This is a bindable property.

RealParent

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
RenderHeight

Gets the height of the rendered cell on the device.

(Inherited from Cell)
StyleId

Gets or sets a user defined value to uniquely identify the element.

(Inherited from Element)
Text

Gets or sets the content of the Entry of the EntryCell. This is a bindable property.

VerticalTextAlignment

Methods

ApplyBindings() (Inherited from BindableObject)
ClearValue(BindableProperty)

Clears any value set by SetValue for property.

(Inherited from BindableObject)
ClearValue(BindablePropertyKey)

Clears any value set by SetValue for the property that is identified by propertyKey.

(Inherited from BindableObject)
CoerceValue(BindableProperty) (Inherited from BindableObject)
CoerceValue(BindablePropertyKey) (Inherited from BindableObject)
EffectIsAttached(String)

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
FindByName(String)

Returns the element that has the specified name.

(Inherited from Element)
ForceUpdateSize()

Immediately updates the cell's size.

(Inherited from Cell)
GetValue(BindableProperty)

Returns the value that is contained in the BindableProperty.

(Inherited from BindableObject)
IsSet(BindableProperty)

Returns true if the target property exists and has been set.

(Inherited from BindableObject)
On<T>() (Inherited from Cell)
OnAppearing() (Inherited from Cell)
OnBindingContextChanged() (Inherited from Cell)
OnChildAdded(Element) (Inherited from Element)
OnChildRemoved(Element, Int32) (Inherited from Element)
OnDisappearing() (Inherited from Cell)
OnHandlerChanged() (Inherited from Element)
OnHandlerChanging(HandlerChangingEventArgs) (Inherited from Element)
OnParentChanged() (Inherited from Element)
OnParentChanging(ParentChangingEventArgs) (Inherited from Element)
OnParentSet() (Inherited from Cell)
OnPropertyChanged(String) (Inherited from Element)
OnPropertyChanging(String) (Inherited from Cell)
OnTapped() (Inherited from Cell)
RemoveBinding(BindableProperty)

Removes a previously set binding.

(Inherited from BindableObject)
RemoveDynamicResource(BindableProperty)

Removes a previously set dynamic resource

(Inherited from Element)
SendAppearing()

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Cell)
SendCompleted()

For internal use by the Microsoft.Maui.Controls platform.

SendDisappearing()

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Cell)
SetBinding(BindableProperty, BindingBase)

Assigns a binding to a property.

(Inherited from BindableObject)
SetDynamicResource(BindableProperty, String)

Sets the BindableProperty property of this element to be updated via the DynamicResource with the provided key.

(Inherited from Element)
SetValue(BindableProperty, Object)

Sets the value of the specified property.

(Inherited from BindableObject)
SetValue(BindablePropertyKey, Object)

Sets the value of the propertyKey.

(Inherited from BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from BindableObject)
SetValueFromRenderer(BindableProperty, Object)

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
SetValueFromRenderer(BindablePropertyKey, Object)

For internal use by the Microsoft.Maui.Controls platform.

(Inherited from Element)
UnapplyBindings() (Inherited from BindableObject)

Events

Appearing (Inherited from Cell)
BindingContextChanged (Inherited from BindableObject)
ChildAdded (Inherited from Element)
ChildRemoved (Inherited from Element)
Completed
DescendantAdded (Inherited from Element)
DescendantRemoved (Inherited from Element)
Disappearing (Inherited from Cell)
ForceUpdateSizeRequested (Inherited from Cell)
HandlerChanged (Inherited from Element)
HandlerChanging (Inherited from Element)
ParentChanged (Inherited from Element)
ParentChanging (Inherited from Element)
PropertyChanged (Inherited from BindableObject)
PropertyChanging (Inherited from BindableObject)
Tapped (Inherited from Cell)

Explicit Interface Implementations

IContextFlyoutElement.ContextFlyout (Inherited from Element)
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String) (Inherited from BindableObject)
IEffectControlProvider.RegisterEffect(Effect) (Inherited from Element)
IElement.Parent (Inherited from Element)
IElementController.Descendants() (Inherited from Element)
IElementController.LogicalChildren (Inherited from Element)
IElementController.SetValueFromRenderer(BindableProperty, Object) (Inherited from Element)
INameScope.RegisterName(String, Object) (Inherited from Element)
INameScope.UnregisterName(String) (Inherited from Element)
IToolTipElement.ToolTip (Inherited from Element)
IVisualTreeElement.GetVisualChildren() (Inherited from Cell)
IVisualTreeElement.GetVisualParent() (Inherited from Element)

Extension Methods

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)
SetAppTheme<T>(BindableObject, BindableProperty, T, T)
SetAppThemeColor(BindableObject, BindableProperty, Color, Color)
SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

Creates and applies a binding to a property.

GetPath(Cell)

For internal use by platform renderers.

FindByName<T>(Element, String)
ToHandler(IElement, IMauiContext)
ToPlatform(IElement, IMauiContext)
GetVisualElementWindow(IVisualTreeElement)

Gets the Window containing the Visual Tree Element, if the element is contained within one.

GetVisualTreeDescendants(IVisualTreeElement)

Gets the entire hierarchy of descendants as a list of children for a given Visual Tree Element.

GetVisualTreeElements(IVisualTreeElement, Point)

Gets list of a Visual Tree Element's children based off of a given Point.

GetVisualTreeElements(IVisualTreeElement, Rect)

Gets list of a Visual Tree Elements children based off of a rectangle.

GetVisualTreeElements(IVisualTreeElement, Double, Double)

Gets list of a Visual Tree Elements children based off of a given x, y point.

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

Gets list of a Visual Tree Elements children based off of a rectangle defined by its coordinates which are specified in platform units, not pixels.

Applies to