New to Telerik UI for .NET MAUIStart a free 30-day trial

RadEntry is a single line text entry. It is best used for collecting small discrete pieces of information, like usernames and passwords.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class RadEntry : RadInputView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadInputViewRadEntry

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

Inherited Members RadInputView.BorderBrushPropertyRadInputView.BorderThicknessPropertyRadInputView.CornerRadiusPropertyRadInputView.BackgroundColorPropertyRadInputView.BackgroundPropertyRadInputView.TextPropertyRadInputView.SelectionOnFocusPropertyRadInputView.HorizontalTextAlignmentPropertyRadInputView.VerticalTextAlignmentPropertyRadInputView.KeyboardPropertyRadInputView.IsSpellCheckEnabledPropertyRadInputView.IsTextPredictionEnabledPropertyRadInputView.IsReadOnlyPropertyRadInputView.TextColorPropertyRadInputView.CharacterSpacingPropertyRadInputView.TextTransformPropertyRadInputView.CursorPositionPropertyRadInputView.SelectionLengthPropertyRadInputView.FontAttributesPropertyRadInputView.FontFamilyPropertyRadInputView.FontSizePropertyRadInputView.FontAutoScalingEnabledPropertyRadInputView.IsValueValidPropertyRadInputView.ValidationErrorMessagePropertyRadInputView.ValidationErrorColorPropertyRadInputView.ValidationErrorImageStylePropertyRadInputView.ValidationErrorLabelStylePropertyRadInputView.ReserveSpaceForErrorViewPropertyRadInputView.ClearButtonVisibilityPropertyRadInputView.ClearButtonStylePropertyRadInputView.MaxLengthPropertyRadInputView.PlaceholderPropertyRadInputView.PlaceholderColorPropertyRadInputView.PaddingPropertyRadInputView.MouseOverStateRadInputView.ReadOnlyStateRadInputView.ReadOnlyInvalidFocusedStateRadInputView.ReadOnlyFocusedStateRadInputView.ReadOnlyInvalidStateRadInputView.InvalidStateRadInputView.InvalidFocusedStateRadInputView.ChangeVisualState()RadInputView.BorderBrushRadInputView.BorderThicknessRadInputView.CornerRadiusRadInputView.BackgroundColorRadInputView.BackgroundRadInputView.TextRadInputView.SelectionOnFocusRadInputView.HorizontalTextAlignmentRadInputView.VerticalTextAlignmentRadInputView.KeyboardRadInputView.IsSpellCheckEnabledRadInputView.IsTextPredictionEnabledRadInputView.IsReadOnlyRadInputView.TextColorRadInputView.CharacterSpacingRadInputView.TextTransformRadInputView.CursorPositionRadInputView.SelectionLengthRadInputView.FontAttributesRadInputView.FontFamilyRadInputView.FontSizeRadInputView.FontAutoScalingEnabledRadInputView.IsValueValidRadInputView.ValidationErrorMessageRadInputView.ValidationErrorColorRadInputView.ValidationErrorImageStyleRadInputView.ValidationErrorLabelStyleRadInputView.ReserveSpaceForErrorViewRadInputView.ClearButtonVisibilityRadInputView.ClearButtonStyleRadInputView.MaxLengthRadInputView.PlaceholderRadInputView.PlaceholderColorRadInputView.PaddingRadInputView.TextChangingRadInputView.TextChangedRadInputView.CompletedRadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnHandlerChanged()...

Constructors

C#
public RadEntry()

Fields

IsPasswordProperty

BindableProperty

Identifies the IsPassword property.

C#
public static readonly BindableProperty IsPasswordProperty

Identifies the ReturnCommandParameter property.

C#
public static readonly BindableProperty ReturnCommandParameterProperty

ReturnCommandProperty

BindableProperty

Identifies the ReturnCommand property.

C#
public static readonly BindableProperty ReturnCommandProperty

ReturnTypeProperty

BindableProperty

Identifies the ReturnType property.

C#
public static readonly BindableProperty ReturnTypeProperty

Properties

Gets or sets a value that indicates if the entry should visually obscure typed text. Value is true if the element is a password box; otherwise, false. Default value is false.

C#
public bool IsPassword { get; set; }
Remarks:

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.

Gets or sets the command to run when the user presses the return key, either physically or on the on-screen keyboard.

C#
public ICommand ReturnCommand { get; set; }

Gets or sets the parameter object for the ReturnCommand that can be used to provide extra information.

C#
public object ReturnCommandParameter { get; set; }

ReturnType

ReturnType

Determines what the return key on the on-screen keyboard should look like.

C#
public ReturnType ReturnType { get; set; }

Methods

Creates the default horizontal text alignment for the control.

C#
protected override object CreateDefaultHorizontalTextAlignment()
Returns:

object

Overrides: RadInputView.CreateDefaultHorizontalTextAlignment()

Creates the default padding for the control based on the platform.

C#
protected override object CreateDefaultPadding()
Returns:

object

Overrides: RadInputView.CreateDefaultPadding()

Creates the default vertical text alignment for the control.

C#
protected override object CreateDefaultVerticalTextAlignment()
Returns:

object

Overrides: RadInputView.CreateDefaultVerticalTextAlignment()

Gets the default text input style for the control.

C#
protected override Style GetDefaultTextInputStyle()
Returns:

Style

Overrides: RadInputView.GetDefaultTextInputStyle()

Called when the control template is applied. Initializes the from the template.

C#
protected override void OnApplyTemplate()

Overrides: RadCompositeContentView.OnApplyTemplate()