Class
RadEntry

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:

cs-api-definition
public class RadEntry : RadCompositeContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout

Inheritance: objectRadContentViewRadCompositeContentViewRadEntry

Derived Classes: ChatEntry

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members RadCompositeContentView.StylePropertyRadCompositeContentView.ControlTemplatePropertyRadCompositeContentView.OnBindingContextChanged()RadCompositeContentView.OnPropertyChanged(string)RadCompositeContentView.StyleRadCompositeContentView.ControlTemplateRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnHandlerChanged()

Constructors

RadEntry()

Initializes a new instance of the class.

Declaration

cs-api-definition
public RadEntry()

Fields

BackgroundColorProperty

Identifies the BackgroundColor property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundColorProperty

Field Value

BindableProperty

BackgroundProperty

Identifies the Background property.

Declaration

cs-api-definition
public static readonly BindableProperty BackgroundProperty

Field Value

BindableProperty

BorderBrushProperty

Identifies the BorderBrush property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderBrushProperty

Field Value

BindableProperty

BorderThicknessProperty

Identifies the BorderThickness property.

Declaration

cs-api-definition
public static readonly BindableProperty BorderThicknessProperty

Field Value

BindableProperty

CharacterSpacingProperty

Identifies the CharacterSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty CharacterSpacingProperty

Field Value

BindableProperty

ClearButtonStyleProperty

Identifies the ClearButtonStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ClearButtonStyleProperty

Field Value

BindableProperty

ClearButtonVisibilityProperty

Identifies the ClearButtonVisibility property.

Declaration

cs-api-definition
public static readonly BindableProperty ClearButtonVisibilityProperty

Field Value

BindableProperty

CornerRadiusProperty

Identifies the CornerRadius property.

Declaration

cs-api-definition
public static readonly BindableProperty CornerRadiusProperty

Field Value

BindableProperty

CursorPositionProperty

Identifies the CursorPosition property.

Declaration

cs-api-definition
public static readonly BindableProperty CursorPositionProperty

Field Value

BindableProperty

FontAttributesProperty

Identifies the FontAttributes property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAttributesProperty

Field Value

BindableProperty

FontAutoScalingEnabledProperty

Identifies the FontAutoScalingEnabled property.

Declaration

cs-api-definition
public static readonly BindableProperty FontAutoScalingEnabledProperty

Field Value

BindableProperty

FontFamilyProperty

Identifies the FontFamily property.

Declaration

cs-api-definition
public static readonly BindableProperty FontFamilyProperty

Field Value

BindableProperty

FontSizeProperty

Identifies the FontSize property.

Declaration

cs-api-definition
public static readonly BindableProperty FontSizeProperty

Field Value

BindableProperty

HorizontalTextAlignmentProperty

Identifies the HorizontalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty HorizontalTextAlignmentProperty

Field Value

BindableProperty

InvalidFocusedState

Represents the visual state name for invalid focused state.

Declaration

cs-api-definition
public const string InvalidFocusedState = "InvalidFocused"

Field Value

string

InvalidState

Represents the visual state name for invalid state.

Declaration

cs-api-definition
public const string InvalidState = "Invalid"

Field Value

string

IsPasswordProperty

Identifies the IsPassword property.

Declaration

cs-api-definition
public static readonly BindableProperty IsPasswordProperty

Field Value

BindableProperty

IsReadOnlyProperty

Identifies the IsReadOnly property.

Declaration

cs-api-definition
public static readonly BindableProperty IsReadOnlyProperty

Field Value

BindableProperty

IsSpellCheckEnabledProperty

Identifies the IsSpellCheckEnabled property.

Declaration

cs-api-definition
public static readonly BindableProperty IsSpellCheckEnabledProperty

Field Value

BindableProperty

IsTextPredictionEnabledProperty

Identifies the IsTextPredictionEnabled property.

Declaration

cs-api-definition
public static readonly BindableProperty IsTextPredictionEnabledProperty

Field Value

BindableProperty

IsValueValidProperty

Identifies the IsValueValid property.

Declaration

cs-api-definition
public static readonly BindableProperty IsValueValidProperty

Field Value

BindableProperty

KeyboardProperty

Identifies the Keyboard property.

Declaration

cs-api-definition
public static readonly BindableProperty KeyboardProperty

Field Value

BindableProperty

MaxLengthProperty

Identifies the MaxLength property.

Declaration

cs-api-definition
public static readonly BindableProperty MaxLengthProperty

Field Value

BindableProperty

MouseOverState

Represents the visual state name for mouse over state.

Declaration

cs-api-definition
public const string MouseOverState = "MouseOver"

Field Value

string

PaddingProperty

Identifies the Padding property.

Declaration

cs-api-definition
public static readonly BindableProperty PaddingProperty

Field Value

BindableProperty

PlaceholderColorProperty

Identifies the PlaceholderColor property.

Declaration

cs-api-definition
public static readonly BindableProperty PlaceholderColorProperty

Field Value

BindableProperty

PlaceholderProperty

Identifies the Placeholder property.

Declaration

cs-api-definition
public static readonly BindableProperty PlaceholderProperty

Field Value

BindableProperty

ReadOnlyFocusedState

Represents the visual state name for read-only focused state.

Declaration

cs-api-definition
public const string ReadOnlyFocusedState = "ReadOnlyFocused"

Field Value

string

ReadOnlyInvalidFocusedState

Represents the visual state name for read-only invalid focused state.

Declaration

cs-api-definition
public const string ReadOnlyInvalidFocusedState = "ReadOnlyInvalidFocused"

Field Value

string

ReadOnlyInvalidState

Represents the visual state name for read-only invalid state.

Declaration

cs-api-definition
public const string ReadOnlyInvalidState = "ReadOnlyInvalid"

Field Value

string

ReadOnlyState

Represents the visual state name for read-only state.

Declaration

cs-api-definition
public const string ReadOnlyState = "ReadOnly"

Field Value

string

ReserveSpaceForErrorViewProperty

Identifies the ReserveSpaceForErrorView property.

Declaration

cs-api-definition
public static readonly BindableProperty ReserveSpaceForErrorViewProperty

Field Value

BindableProperty

ReturnCommandParameterProperty

Identifies the ReturnCommandParameter property.

Declaration

cs-api-definition
public static readonly BindableProperty ReturnCommandParameterProperty

Field Value

BindableProperty

ReturnCommandProperty

Identifies the ReturnCommand property.

Declaration

cs-api-definition
public static readonly BindableProperty ReturnCommandProperty

Field Value

BindableProperty

ReturnTypeProperty

Identifies the ReturnType property.

Declaration

cs-api-definition
public static readonly BindableProperty ReturnTypeProperty

Field Value

BindableProperty

SelectionLengthProperty

Identifies the SelectionLength property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectionLengthProperty

Field Value

BindableProperty

SelectionOnFocusProperty

Identifies the SelectionOnFocus property.

Declaration

cs-api-definition
public static readonly BindableProperty SelectionOnFocusProperty

Field Value

BindableProperty

TextColorProperty

Identifies the TextColor property.

Declaration

cs-api-definition
public static readonly BindableProperty TextColorProperty

Field Value

BindableProperty

TextProperty

Identifies the Text property.

Declaration

cs-api-definition
public static readonly BindableProperty TextProperty

Field Value

BindableProperty

TextTransformProperty

Identifies the TextTransform property.

Declaration

cs-api-definition
public static readonly BindableProperty TextTransformProperty

Field Value

BindableProperty

ValidationErrorColorProperty

Identifies the ValidationErrorColor property.

Declaration

cs-api-definition
public static readonly BindableProperty ValidationErrorColorProperty

Field Value

BindableProperty

ValidationErrorImageStyleProperty

Identifies the ValidationErrorImageStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ValidationErrorImageStyleProperty

Field Value

BindableProperty

ValidationErrorLabelStyleProperty

Identifies the ValidationErrorLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ValidationErrorLabelStyleProperty

Field Value

BindableProperty

ValidationErrorMessageProperty

Identifies the ValidationErrorMessage property.

Declaration

cs-api-definition
public static readonly BindableProperty ValidationErrorMessageProperty

Field Value

BindableProperty

VerticalTextAlignmentProperty

Identifies the VerticalTextAlignment property.

Declaration

cs-api-definition
public static readonly BindableProperty VerticalTextAlignmentProperty

Field Value

BindableProperty

Properties

Background

Gets or sets the background brush of the control.

Declaration

cs-api-definition
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Property Value

Brush

BackgroundColor

Gets or sets the background color of the control.

Declaration

cs-api-definition
public Color BackgroundColor { get; set; }

Property Value

Color

BorderBrush

Gets or sets the border brush of the control.

Declaration

cs-api-definition
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }

Property Value

Brush

BorderThickness

Gets or sets the border thickness of the control.

Declaration

cs-api-definition
public Thickness BorderThickness { get; set; }

Property Value

Thickness

CharacterSpacing

Gets or sets a value indicating the number of device-independent units that should be in between characters in the text displayed by the entry.

Declaration

cs-api-definition
public double CharacterSpacing { get; set; }

Property Value

double

ClearButtonStyle

Gets or sets a custom style that is to be applied to the clear button. The actual style that is applied is a merger between this style and the default clear button style.

Declaration

cs-api-definition
public Style ClearButtonStyle { get; set; }

Property Value

Style

ClearButtonVisibility

Gets or sets a value indicating when the clear-button (the button that clears the text when pressed) should be displayed.

Declaration

cs-api-definition
public ClearButtonVisibility ClearButtonVisibility { get; set; }

Property Value

ClearButtonVisibility

CornerRadius

Gets or sets the corner radius of the control.

Declaration

cs-api-definition
[TypeConverter(typeof(CornerRadiusTypeConverter))]
public CornerRadius CornerRadius { get; set; }

Property Value

CornerRadius

CursorPosition

Gets or sets the position of the cursor. The value must be more than or equal to 0 and less or equal to the length of text.

Declaration

cs-api-definition
public int CursorPosition { get; set; }

Property Value

int

FontAttributes

Gets or sets a value that indicates whether the font for the text of this entry is bold, italic, or neither.

Declaration

cs-api-definition
public FontAttributes FontAttributes { get; set; }

Property Value

FontAttributes

FontAutoScalingEnabled

Determines whether or not the font of this entry should scale automatically according to the operating system settings. Default value is true.

Declaration

cs-api-definition
public bool FontAutoScalingEnabled { get; set; }

Property Value

bool

Remarks

Typically this should always be enabled for accessibility reasons.

FontFamily

Gets or sets the font family for the text of this entry.

Declaration

cs-api-definition
public string FontFamily { get; set; }

Property Value

string

FontSize

Gets or sets the size of the font for the text of this entry.

Declaration

cs-api-definition
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

double

HorizontalTextAlignment

Gets or sets the horizontal text alignment.

Declaration

cs-api-definition
public TextAlignment HorizontalTextAlignment { get; set; }

Property Value

TextAlignment

IsPassword

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.

Declaration

cs-api-definition
public bool IsPassword { get; set; }

Property Value

bool

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.

IsReadOnly

Gets or sets a value indicating whether the user should be prevented from modifying the text.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

IsSpellCheckEnabled

Gets or sets a value that controls whether spell checking is enabled.

Declaration

cs-api-definition
public bool IsSpellCheckEnabled { get; set; }

Property Value

bool

Remarks

On Windows, spellchecking also turns on auto correction

IsTextPredictionEnabled

Gets or sets a value that controls whether text prediction and automatic text correction are enabled.

Declaration

cs-api-definition
public bool IsTextPredictionEnabled { get; set; }

Property Value

bool

Remarks

On Windows, text prediction only affects touch keyboards and only affects keyboard word suggestions.

IsValueValid

Gets or sets a value indicating whether the text value of is valid.

Declaration

cs-api-definition
public bool IsValueValid { get; set; }

Property Value

bool

Keyboard

Gets or sets the keyboard type that is displayed when this view is in focus.

Declaration

cs-api-definition
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard Keyboard { get; set; }

Property Value

Keyboard

MaxLength

Gets or sets the maximum allowed length of input.

Declaration

cs-api-definition
public int MaxLength { get; set; }

Property Value

int

Padding

Gets or sets the padding.

Declaration

cs-api-definition
public Thickness Padding { get; set; }

Property Value

Thickness

Placeholder

Gets or sets the text that is displayed when the control is empty.

Declaration

cs-api-definition
public string Placeholder { get; set; }

Property Value

string

PlaceholderColor

Gets or sets the color of the placeholder text.

Declaration

cs-api-definition
public Color PlaceholderColor { get; set; }

Property Value

Color

ReserveSpaceForErrorView

Gets or sets a value indicating whether space for the error label should always be reserved. When set to true, the entry does not change size when an error is shown. When set to false, the entry might change size to make space for the error label.

Declaration

cs-api-definition
public bool ReserveSpaceForErrorView { get; set; }

Property Value

bool

ReturnCommand

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

Declaration

cs-api-definition
public ICommand ReturnCommand { get; set; }

Property Value

ICommand

ReturnCommandParameter

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

Declaration

cs-api-definition
public object ReturnCommandParameter { get; set; }

Property Value

object

ReturnType

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

Declaration

cs-api-definition
public ReturnType ReturnType { get; set; }

Property Value

ReturnType

SelectionLength

Gets or sets the length of the text selection. The selection starts at CursorPosition.

Declaration

cs-api-definition
public int SelectionLength { get; set; }

Property Value

int

SelectionOnFocus

Gets or sets a value that specifies the modification over the text selection when the control receives focus.

Declaration

cs-api-definition
public SelectionOnFocus SelectionOnFocus { get; set; }

Property Value

SelectionOnFocus

Text

Gets or sets the text.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

TextColor

Gets or sets a value indicating whether the user should be prevented from modifying the text.

Declaration

cs-api-definition
public Color TextColor { get; set; }

Property Value

Color

TextTransform

Gets or sets the text transformation that is applied to the text.

Declaration

cs-api-definition
public TextTransform TextTransform { get; set; }

Property Value

TextTransform

ValidationErrorColor

Gets or sets a custom color that should be used to visualize the error views.

Declaration

cs-api-definition
public Color ValidationErrorColor { get; set; }

Property Value

Color

ValidationErrorImageStyle

Gets or sets a custom style that is to be applied to the error icon. The actual style that is applied is a merger between this style and the default error image style.

Declaration

cs-api-definition
public Style ValidationErrorImageStyle { get; set; }

Property Value

Style

ValidationErrorLabelStyle

Gets or sets a custom style that is to be applied to the error label. The actual style that is applied is a merger between this style and the default error label style.

Declaration

cs-api-definition
public Style ValidationErrorLabelStyle { get; set; }

Property Value

Style

ValidationErrorMessage

Gets or sets a value that contains the message that should be displayed when a validation error occurs.

Declaration

cs-api-definition
public string ValidationErrorMessage { get; set; }

Property Value

string

VerticalTextAlignment

Gets or sets the horizontal text alignment.

Declaration

cs-api-definition
public TextAlignment VerticalTextAlignment { get; set; }

Property Value

TextAlignment

Methods

ChangeVisualState()

Updates the visual state of the control based on its current properties.

Declaration

cs-api-definition
protected override void ChangeVisualState()

OnApplyTemplate()

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

Declaration

cs-api-definition
protected override void OnApplyTemplate()

Overrides RadCompositeContentView.OnApplyTemplate()

Events

Completed

Occurs when the user finalizes the text in an entry with the return key.

Declaration

cs-api-definition
public event EventHandler Completed

Event Value

EventHandler

TextChanged

Event that is raised when the text has changed.

Declaration

cs-api-definition
public event EventHandler<TextChangedEventArgs> TextChanged

Event Value

EventHandler<TextChangedEventArgs>

TextChanging

Event that is raised when the text in the entry starts to change, but before the Text property is updated.

Declaration

cs-api-definition
public event EventHandler<TextChangingEventArgs> TextChanging

Event Value

EventHandler<TextChangingEventArgs>

In this article
DefinitionConstructorsRadEntry()FieldsBackgroundColorPropertyBackgroundPropertyBorderBrushPropertyBorderThicknessPropertyCharacterSpacingPropertyClearButtonStylePropertyClearButtonVisibilityPropertyCornerRadiusPropertyCursorPositionPropertyFontAttributesPropertyFontAutoScalingEnabledPropertyFontFamilyPropertyFontSizePropertyHorizontalTextAlignmentPropertyInvalidFocusedStateInvalidStateIsPasswordPropertyIsReadOnlyPropertyIsSpellCheckEnabledPropertyIsTextPredictionEnabledPropertyIsValueValidPropertyKeyboardPropertyMaxLengthPropertyMouseOverStatePaddingPropertyPlaceholderColorPropertyPlaceholderPropertyReadOnlyFocusedStateReadOnlyInvalidFocusedStateReadOnlyInvalidStateReadOnlyStateReserveSpaceForErrorViewPropertyReturnCommandParameterPropertyReturnCommandPropertyReturnTypePropertySelectionLengthPropertySelectionOnFocusPropertyTextColorPropertyTextPropertyTextTransformPropertyValidationErrorColorPropertyValidationErrorImageStylePropertyValidationErrorLabelStylePropertyValidationErrorMessagePropertyVerticalTextAlignmentPropertyPropertiesBackgroundBackgroundColorBorderBrushBorderThicknessCharacterSpacingClearButtonStyleClearButtonVisibilityCornerRadiusCursorPositionFontAttributesFontAutoScalingEnabledFontFamilyFontSizeHorizontalTextAlignmentIsPasswordIsReadOnlyIsSpellCheckEnabledIsTextPredictionEnabledIsValueValidKeyboardMaxLengthPaddingPlaceholderPlaceholderColorReserveSpaceForErrorViewReturnCommandReturnCommandParameterReturnTypeSelectionLengthSelectionOnFocusTextTextColorTextTransformValidationErrorColorValidationErrorImageStyleValidationErrorLabelStyleValidationErrorMessageVerticalTextAlignmentMethodsChangeVisualState()OnApplyTemplate()EventsCompletedTextChangedTextChanging
Not finding the help you need?
Contact Support