Class TextField
[ContentProperty("Validations")]
public class TextField : InputField, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IValidatable, INotifyPropertyChanged
- Inheritance
-
TextField
- Implements
- Inherited Members
- Extension Methods
Constructors
TextField()
public TextField()
Fields
AllowClearProperty
public static BindableProperty AllowClearProperty
Field Value
CharacterSpacingProperty
public static readonly BindableProperty CharacterSpacingProperty
Field Value
ClearButtonVisibilityProperty
public static readonly BindableProperty ClearButtonVisibilityProperty
Field Value
CursorPositionProperty
public static readonly BindableProperty CursorPositionProperty
Field Value
DisallowClearButtonFocusProperty
public static BindableProperty DisallowClearButtonFocusProperty
Field Value
FontAttributesProperty
public static readonly BindableProperty FontAttributesProperty
Field Value
FontSizeProperty
public static readonly BindableProperty FontSizeProperty
Field Value
HorizontalTextAlignmentProperty
public static readonly BindableProperty HorizontalTextAlignmentProperty
Field Value
IsPasswordProperty
public static readonly BindableProperty IsPasswordProperty
Field Value
IsReadOnlyProperty
public static readonly BindableProperty IsReadOnlyProperty
Field Value
IsTextPredictionEnabledProperty
public static readonly BindableProperty IsTextPredictionEnabledProperty
Field Value
KeyboardProperty
public static readonly BindableProperty KeyboardProperty
Field Value
MaxLengthProperty
public static readonly BindableProperty MaxLengthProperty
Field Value
ReturnCommandParameterProperty
public static readonly BindableProperty ReturnCommandParameterProperty
Field Value
ReturnCommandProperty
public static readonly BindableProperty ReturnCommandProperty
Field Value
ReturnTypeProperty
public static readonly BindableProperty ReturnTypeProperty
Field Value
SelectAllTextOnFocusProperty
public static BindableProperty SelectAllTextOnFocusProperty
Field Value
SelectionHighlightColorProperty
public static readonly BindableProperty SelectionHighlightColorProperty
Field Value
SelectionLengthProperty
public static readonly BindableProperty SelectionLengthProperty
Field Value
TextColorProperty
public static readonly BindableProperty TextColorProperty
Field Value
TextProperty
public static readonly BindableProperty TextProperty
Field Value
Properties
AllowClear
public bool AllowClear { get; set; }
Property Value
CharacterSpacing
public double CharacterSpacing { get; set; }
Property Value
ClearButtonVisibility
public ClearButtonVisibility ClearButtonVisibility { get; set; }
Property Value
ClearCommand
public ICommand ClearCommand { get; protected set; }
Property Value
Content
public override View Content { get; set; }
Property Value
CursorPosition
public int CursorPosition { get; set; }
Property Value
DisallowClearButtonFocus
public bool DisallowClearButtonFocus { get; set; }
Property Value
EntryBehaviors
public IList<Behavior> EntryBehaviors { get; }
Property Value
EntryView
public EntryView EntryView { get; }
Property Value
FontAttributes
public FontAttributes FontAttributes { get; set; }
Property Value
FontSize
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
HasValue
public override bool HasValue { get; }
Property Value
HorizontalTextAlignment
public TextAlignment HorizontalTextAlignment { get; set; }
Property Value
IsPassword
public bool IsPassword { get; set; }
Property Value
IsReadOnly
public bool IsReadOnly { get; set; }
Property Value
IsTextPredictionEnabled
public bool IsTextPredictionEnabled { get; set; }
Property Value
Keyboard
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard Keyboard { get; set; }
Property Value
MaxLength
public int MaxLength { get; set; }
Property Value
ReturnCommand
public ICommand ReturnCommand { get; set; }
Property Value
ReturnCommandParameter
public object ReturnCommandParameter { get; set; }
Property Value
ReturnType
public ReturnType ReturnType { get; set; }
Property Value
SelectAllTextOnFocus
public bool SelectAllTextOnFocus { get; set; }
Property Value
SelectionHighlightColor
public Color SelectionHighlightColor { get; set; }
Property Value
SelectionLength
public int SelectionLength { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
TextColor
public Color TextColor { get; set; }
Property Value
Methods
ApplyAttachedProperties()
protected virtual void ApplyAttachedProperties()
ClearValue()
public void ClearValue()
CreateIconClear()
protected virtual View CreateIconClear()
Returns
GetValueForValidator()
protected override object GetValueForValidator()
Returns
OnAllowClearChanged()
protected virtual void OnAllowClearChanged()
OnClearTapped()
protected virtual void OnClearTapped()
OnHandlerChanged()
When overridden in a derived class, should raise the HandlerChanged event.
protected override void OnHandlerChanged()
Remarks
It is the implementor's responsibility to raise the HandlerChanged event.
ResetValidation()
public override void ResetValidation()
SelectAllText()
Input has be be already focused when this method is called.
public void SelectAllText()
UpdateClearIconState()
protected virtual void UpdateClearIconState()
Events
Completed
public event EventHandler Completed
Event Type
TextChanged
public event EventHandler<TextChangedEventArgs> TextChanged