ClassRadEntry
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:
public class RadEntry : RadCompositeContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadEntry
Derived Classes:
Implements:
Inherited Members
Constructors
Fields
BackgroundColorProperty
Identifies the BackgroundColor property.
Declaration
public static readonly BindableProperty BackgroundColorProperty
Field Value
BindableProperty
BackgroundProperty
Identifies the Background property.
Declaration
public static readonly BindableProperty BackgroundProperty
Field Value
BindableProperty
BorderBrushProperty
Identifies the BorderBrush property.
Declaration
public static readonly BindableProperty BorderBrushProperty
Field Value
BindableProperty
BorderThicknessProperty
Identifies the BorderThickness property.
Declaration
public static readonly BindableProperty BorderThicknessProperty
Field Value
BindableProperty
CharacterSpacingProperty
Identifies the CharacterSpacing property.
Declaration
public static readonly BindableProperty CharacterSpacingProperty
Field Value
BindableProperty
ClearButtonStyleProperty
Identifies the ClearButtonStyle property.
Declaration
public static readonly BindableProperty ClearButtonStyleProperty
Field Value
BindableProperty
ClearButtonVisibilityProperty
Identifies the ClearButtonVisibility property.
Declaration
public static readonly BindableProperty ClearButtonVisibilityProperty
Field Value
BindableProperty
CornerRadiusProperty
Identifies the CornerRadius property.
Declaration
public static readonly BindableProperty CornerRadiusProperty
Field Value
BindableProperty
CursorPositionProperty
Identifies the CursorPosition property.
Declaration
public static readonly BindableProperty CursorPositionProperty
Field Value
BindableProperty
FontAttributesProperty
Identifies the FontAttributes property.
Declaration
public static readonly BindableProperty FontAttributesProperty
Field Value
BindableProperty
FontAutoScalingEnabledProperty
Identifies the FontAutoScalingEnabled property.
Declaration
public static readonly BindableProperty FontAutoScalingEnabledProperty
Field Value
BindableProperty
FontFamilyProperty
Identifies the FontFamily property.
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
BindableProperty
FontSizeProperty
Identifies the FontSize property.
Declaration
public static readonly BindableProperty FontSizeProperty
Field Value
BindableProperty
HorizontalTextAlignmentProperty
Identifies the HorizontalTextAlignment property.
Declaration
public static readonly BindableProperty HorizontalTextAlignmentProperty
Field Value
BindableProperty
InvalidFocusedState
Represents the visual state name for invalid focused state.
Declaration
public const string InvalidFocusedState = "InvalidFocused"
Field Value
InvalidState
Represents the visual state name for invalid state.
IsPasswordProperty
Identifies the IsPassword property.
Declaration
public static readonly BindableProperty IsPasswordProperty
Field Value
BindableProperty
IsReadOnlyProperty
Identifies the IsReadOnly property.
Declaration
public static readonly BindableProperty IsReadOnlyProperty
Field Value
BindableProperty
IsSpellCheckEnabledProperty
Identifies the IsSpellCheckEnabled property.
Declaration
public static readonly BindableProperty IsSpellCheckEnabledProperty
Field Value
BindableProperty
IsTextPredictionEnabledProperty
Identifies the IsTextPredictionEnabled property.
Declaration
public static readonly BindableProperty IsTextPredictionEnabledProperty
Field Value
BindableProperty
IsValueValidProperty
Identifies the IsValueValid property.
Declaration
public static readonly BindableProperty IsValueValidProperty
Field Value
BindableProperty
KeyboardProperty
Identifies the Keyboard property.
Declaration
public static readonly BindableProperty KeyboardProperty
Field Value
BindableProperty
MaxLengthProperty
Identifies the MaxLength property.
Declaration
public static readonly BindableProperty MaxLengthProperty
Field Value
BindableProperty
MouseOverState
Represents the visual state name for mouse over state.
PaddingProperty
Identifies the Padding property.
Declaration
public static readonly BindableProperty PaddingProperty
Field Value
BindableProperty
PlaceholderColorProperty
Identifies the PlaceholderColor property.
Declaration
public static readonly BindableProperty PlaceholderColorProperty
Field Value
BindableProperty
PlaceholderProperty
Identifies the Placeholder property.
Declaration
public static readonly BindableProperty PlaceholderProperty
Field Value
BindableProperty
ReadOnlyFocusedState
Represents the visual state name for read-only focused state.
Declaration
public const string ReadOnlyFocusedState = "ReadOnlyFocused"
Field Value
ReadOnlyInvalidFocusedState
Represents the visual state name for read-only invalid focused state.
Declaration
public const string ReadOnlyInvalidFocusedState = "ReadOnlyInvalidFocused"
Field Value
ReadOnlyInvalidState
Represents the visual state name for read-only invalid state.
Declaration
public const string ReadOnlyInvalidState = "ReadOnlyInvalid"
Field Value
ReadOnlyState
Represents the visual state name for read-only state.
ReserveSpaceForErrorViewProperty
Identifies the ReserveSpaceForErrorView property.
Declaration
public static readonly BindableProperty ReserveSpaceForErrorViewProperty
Field Value
BindableProperty
ReturnCommandParameterProperty
Identifies the ReturnCommandParameter property.
Declaration
public static readonly BindableProperty ReturnCommandParameterProperty
Field Value
BindableProperty
ReturnCommandProperty
Identifies the ReturnCommand property.
Declaration
public static readonly BindableProperty ReturnCommandProperty
Field Value
BindableProperty
ReturnTypeProperty
Identifies the ReturnType property.
Declaration
public static readonly BindableProperty ReturnTypeProperty
Field Value
BindableProperty
SelectionLengthProperty
Identifies the SelectionLength property.
Declaration
public static readonly BindableProperty SelectionLengthProperty
Field Value
BindableProperty
SelectionOnFocusProperty
Identifies the SelectionOnFocus property.
Declaration
public static readonly BindableProperty SelectionOnFocusProperty
Field Value
BindableProperty
TextColorProperty
Identifies the TextColor property.
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
BindableProperty
TextProperty
Identifies the Text property.
Declaration
public static readonly BindableProperty TextProperty
Field Value
BindableProperty
TextTransformProperty
Identifies the TextTransform property.
Declaration
public static readonly BindableProperty TextTransformProperty
Field Value
BindableProperty
ValidationErrorColorProperty
Identifies the ValidationErrorColor property.
Declaration
public static readonly BindableProperty ValidationErrorColorProperty
Field Value
BindableProperty
ValidationErrorImageStyleProperty
Identifies the ValidationErrorImageStyle property.
Declaration
public static readonly BindableProperty ValidationErrorImageStyleProperty
Field Value
BindableProperty
ValidationErrorLabelStyleProperty
Identifies the ValidationErrorLabelStyle property.
Declaration
public static readonly BindableProperty ValidationErrorLabelStyleProperty
Field Value
BindableProperty
ValidationErrorMessageProperty
Identifies the ValidationErrorMessage property.
Declaration
public static readonly BindableProperty ValidationErrorMessageProperty
Field Value
BindableProperty
VerticalTextAlignmentProperty
Identifies the VerticalTextAlignment property.
Declaration
public static readonly BindableProperty VerticalTextAlignmentProperty
Field Value
BindableProperty
Properties
Background
Gets or sets the background brush of the control.
Declaration
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }
Property Value
Brush
BackgroundColor
Gets or sets the background color of the control.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Color
BorderBrush
Gets or sets the border brush of the control.
Declaration
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }
Property Value
Brush
BorderThickness
Gets or sets the border thickness of the control.
Declaration
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.
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
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
public ClearButtonVisibility ClearButtonVisibility { get; set; }
Property Value
ClearButtonVisibility
CornerRadius
Gets or sets the corner radius of the control.
Declaration
[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.
FontAttributes
Gets or sets a value that indicates whether the font for the text of this entry is bold, italic, or neither.
Declaration
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
public bool FontAutoScalingEnabled { get; set; }
Property Value
Remarks
Typically this should always be enabled for accessibility reasons.
FontFamily
Gets or sets the font family for the text of this entry.
FontSize
Gets or sets the size of the font for the text of this entry.
Declaration
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
Property Value
HorizontalTextAlignment
Gets or sets the horizontal text alignment.
Declaration
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
public bool IsPassword { get; set; }
Property Value
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.
IsSpellCheckEnabled
Gets or sets a value that controls whether spell checking is enabled.
Declaration
public bool IsSpellCheckEnabled { get; set; }
Property Value
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
public bool IsTextPredictionEnabled { get; set; }
Property Value
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.
Keyboard
Gets or sets the keyboard type that is displayed when this view is in focus.
Declaration
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard Keyboard { get; set; }
Property Value
Keyboard
MaxLength
Gets or sets the maximum allowed length of input.
Padding
Gets or sets the padding.
Declaration
public Thickness Padding { get; set; }
Property Value
Thickness
Placeholder
Gets or sets the text that is displayed when the control is empty.
PlaceholderColor
Gets or sets the color of the placeholder text.
Declaration
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
public bool ReserveSpaceForErrorView { get; set; }
Property Value
ReturnCommand
Gets or sets the command to run when the user presses the return key, either physically or on the on-screen keyboard.
ReturnCommandParameter
Gets or sets the parameter object for the ReturnCommand that can be used to provide extra information.
Declaration
public object ReturnCommandParameter { get; set; }
Property Value
ReturnType
Determines what the return key on the on-screen keyboard should look like.
Declaration
public ReturnType ReturnType { get; set; }
Property Value
ReturnType
SelectionLength
Gets or sets the length of the text selection. The selection starts at CursorPosition.
SelectionOnFocus
Gets or sets a value that specifies the modification over the text selection when the control receives focus.
Declaration
public SelectionOnFocus SelectionOnFocus { get; set; }
Property Value
Text
Gets or sets the text.
TextColor
Gets or sets a value indicating whether the user should be prevented from modifying the text.
Declaration
public Color TextColor { get; set; }
Property Value
Color
TextTransform
Gets or sets the text transformation that is applied to the text.
Declaration
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
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
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
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
public string ValidationErrorMessage { get; set; }
Property Value
VerticalTextAlignment
Gets or sets the horizontal text alignment.
Declaration
public TextAlignment VerticalTextAlignment { get; set; }
Property Value
TextAlignment
Methods
ChangeVisualState()
Updates the visual state of the control based on its current properties.
Declaration
protected override void ChangeVisualState()
OnApplyTemplate()
Called when the control template is applied. Initializes the from the template.
Declaration
protected override void OnApplyTemplate()
Overrides
Events
Completed
Occurs when the user finalizes the text in an entry with the return key.
TextChanged
Event that is raised when the text has changed.
Declaration
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
public event EventHandler<TextChangingEventArgs> TextChanging
Event Value