RadInputView
Represents a base class for input controls like RadEntry and RadEditor that provides common functionality for text input, validation, and styling.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class RadInputView : RadCompositeContentView, IRadContentView, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance: objectRadContentViewRadCompositeContentViewRadInputView
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadInputView class.
protected RadInputView()
Fields
BackgroundColorProperty
BindableProperty
Identifies the BackgroundColor property.
public static readonly BindableProperty BackgroundColorProperty
BackgroundProperty
BindableProperty
Identifies the Background property.
public static readonly BindableProperty BackgroundProperty
BorderBrushProperty
BindableProperty
Identifies the BorderBrush property.
public static readonly BindableProperty BorderBrushProperty
BorderThicknessProperty
BindableProperty
Identifies the BorderThickness property.
public static readonly BindableProperty BorderThicknessProperty
CharacterSpacingProperty
BindableProperty
Identifies the CharacterSpacing property.
public static readonly BindableProperty CharacterSpacingProperty
ClearButtonStyleProperty
BindableProperty
Identifies the ClearButtonStyle property.
public static readonly BindableProperty ClearButtonStyleProperty
ClearButtonVisibilityProperty
BindableProperty
Identifies the ClearButtonVisibility property.
public static readonly BindableProperty ClearButtonVisibilityProperty
CornerRadiusProperty
BindableProperty
Identifies the CornerRadius property.
public static readonly BindableProperty CornerRadiusProperty
CursorPositionProperty
BindableProperty
Identifies the CursorPosition property.
public static readonly BindableProperty CursorPositionProperty
FontAttributesProperty
BindableProperty
Identifies the FontAttributes property.
public static readonly BindableProperty FontAttributesProperty
FontAutoScalingEnabledProperty
BindableProperty
Identifies the FontAutoScalingEnabled property.
public static readonly BindableProperty FontAutoScalingEnabledProperty
FontFamilyProperty
BindableProperty
Identifies the FontFamily property.
public static readonly BindableProperty FontFamilyProperty
FontSizeProperty
BindableProperty
Identifies the FontSize property.
public static readonly BindableProperty FontSizeProperty
HorizontalTextAlignmentProperty
BindableProperty
Identifies the HorizontalTextAlignment property.
public static readonly BindableProperty HorizontalTextAlignmentProperty
Represents the visual state name for invalid focused state.
public const string InvalidFocusedState = "InvalidFocused"
Represents the visual state name for invalid state.
public const string InvalidState = "Invalid"
IsReadOnlyProperty
BindableProperty
Identifies the IsReadOnly property.
public static readonly BindableProperty IsReadOnlyProperty
IsSpellCheckEnabledProperty
BindableProperty
Identifies the IsSpellCheckEnabled property.
public static readonly BindableProperty IsSpellCheckEnabledProperty
IsTextPredictionEnabledProperty
BindableProperty
Identifies the IsTextPredictionEnabled property.
public static readonly BindableProperty IsTextPredictionEnabledProperty
IsValueValidProperty
BindableProperty
Identifies the IsValueValid property.
public static readonly BindableProperty IsValueValidProperty
KeyboardProperty
BindableProperty
Identifies the Keyboard property.
public static readonly BindableProperty KeyboardProperty
MaxLengthProperty
BindableProperty
Identifies the MaxLength property.
public static readonly BindableProperty MaxLengthProperty
Represents the visual state name for mouse over state.
public const string MouseOverState = "MouseOver"
PaddingProperty
BindableProperty
Identifies the Padding property.
public static readonly BindableProperty PaddingProperty
PlaceholderColorProperty
BindableProperty
Identifies the PlaceholderColor property.
public static readonly BindableProperty PlaceholderColorProperty
PlaceholderProperty
BindableProperty
Identifies the Placeholder property.
public static readonly BindableProperty PlaceholderProperty
Represents the visual state name for read-only focused state.
public const string ReadOnlyFocusedState = "ReadOnlyFocused"
Represents the visual state name for read-only invalid focused state.
public const string ReadOnlyInvalidFocusedState = "ReadOnlyInvalidFocused"
Represents the visual state name for read-only invalid state.
public const string ReadOnlyInvalidState = "ReadOnlyInvalid"
Represents the visual state name for read-only state.
public const string ReadOnlyState = "ReadOnly"
ReserveSpaceForErrorViewProperty
BindableProperty
Identifies the ReserveSpaceForErrorView property.
public static readonly BindableProperty ReserveSpaceForErrorViewProperty
SelectionLengthProperty
BindableProperty
Identifies the SelectionLength property.
public static readonly BindableProperty SelectionLengthProperty
SelectionOnFocusProperty
BindableProperty
Identifies the SelectionOnFocus property.
public static readonly BindableProperty SelectionOnFocusProperty
TextColorProperty
BindableProperty
Identifies the TextColor property.
public static readonly BindableProperty TextColorProperty
TextProperty
BindableProperty
Identifies the Text property.
public static readonly BindableProperty TextProperty
TextTransformProperty
BindableProperty
Identifies the TextTransform property.
public static readonly BindableProperty TextTransformProperty
ValidationErrorColorProperty
BindableProperty
Identifies the ValidationErrorColor property.
public static readonly BindableProperty ValidationErrorColorProperty
ValidationErrorImageStyleProperty
BindableProperty
Identifies the ValidationErrorImageStyle property.
public static readonly BindableProperty ValidationErrorImageStyleProperty
ValidationErrorLabelStyleProperty
BindableProperty
Identifies the ValidationErrorLabelStyle property.
public static readonly BindableProperty ValidationErrorLabelStyleProperty
ValidationErrorMessageProperty
BindableProperty
Identifies the ValidationErrorMessage property.
public static readonly BindableProperty ValidationErrorMessageProperty
VerticalTextAlignmentProperty
BindableProperty
Identifies the VerticalTextAlignment property.
public static readonly BindableProperty VerticalTextAlignmentProperty
Properties
Background
Brush
Gets or sets the background brush of the control.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }
BackgroundColor
Color
Gets or sets the background color of the control.
public Color BackgroundColor { get; set; }
BorderBrush
Brush
Gets or sets the border brush of the control.
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }
BorderThickness
Thickness
Gets or sets the border thickness of the control.
public Thickness BorderThickness { get; set; }
Gets or sets a value indicating the number of device-independent units that should be in between characters in the text.
public double CharacterSpacing { get; set; }
ClearButtonStyle
Style
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.
public Style ClearButtonStyle { get; set; }
ClearButtonVisibility
ClearButtonVisibility
Gets or sets a value indicating when the clear-button (the button that clears the text when pressed) should be displayed.
public ClearButtonVisibility ClearButtonVisibility { get; set; }
CornerRadius
CornerRadius
Gets or sets the corner radius of the control.
[TypeConverter(typeof(CornerRadiusTypeConverter))]
public CornerRadius CornerRadius { get; set; }
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.
public int CursorPosition { get; set; }
FontAttributes
FontAttributes
Gets or sets a value that indicates whether the font for the text is bold, italic, or neither.
public FontAttributes FontAttributes { get; set; }
Determines whether or not the font should scale automatically according to the operating system settings. Default value is true.
public bool FontAutoScalingEnabled { get; set; }
Typically this should always be enabled for accessibility reasons.
Gets or sets the font family for the text.
public string FontFamily { get; set; }
Gets or sets the size of the font for the text.
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }
HorizontalTextAlignment
TextAlignment
Gets or sets the horizontal text alignment.
public TextAlignment HorizontalTextAlignment { get; set; }
Gets or sets a value indicating whether the user should be prevented from modifying the text.
public bool IsReadOnly { get; set; }
Gets or sets a value that controls whether spell checking is enabled.
public bool IsSpellCheckEnabled { get; set; }
On Windows, spellchecking also turns on auto correction
Gets or sets a value that controls whether text prediction and automatic text correction are enabled.
public bool IsTextPredictionEnabled { get; set; }
On Windows, text prediction only affects touch keyboards and only affects keyboard word suggestions.
Gets or sets a value indicating whether the text value is valid.
public bool IsValueValid { get; set; }
Keyboard
Keyboard
Gets or sets the keyboard type that is displayed when this view is in focus.
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard Keyboard { get; set; }
Padding
Thickness
Gets or sets the padding.
public Thickness Padding { get; set; }
Gets or sets the text that is displayed when the control is empty.
public string Placeholder { get; set; }
PlaceholderColor
Color
Gets or sets the color of the placeholder text.
public Color PlaceholderColor { get; set; }
Gets or sets a value indicating whether space for the error label should always be reserved. When set to true, the control does not change size when an error is shown. When set to false, the control might change size to make space for the error label.
public bool ReserveSpaceForErrorView { get; set; }
Gets or sets the length of the text selection. The selection starts at CursorPosition.
public int SelectionLength { get; set; }
Gets or sets a value that specifies the modification over the text selection when the control receives focus.
public SelectionOnFocus SelectionOnFocus { get; set; }
TextColor
Color
Gets or sets the text color.
public Color TextColor { get; set; }
TextTransform
TextTransform
Gets or sets the text transformation that is applied to the text.
public TextTransform TextTransform { get; set; }
ValidationErrorColor
Color
Gets or sets a custom color that should be used to visualize the error views.
public Color ValidationErrorColor { get; set; }
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.
public Style ValidationErrorImageStyle { get; set; }
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.
public Style ValidationErrorLabelStyle { get; set; }
Gets or sets a value that contains the message that should be displayed when a validation error occurs.
public string ValidationErrorMessage { get; set; }
VerticalTextAlignment
TextAlignment
Gets or sets the vertical text alignment.
public TextAlignment VerticalTextAlignment { get; set; }
Methods
Updates the visual state of the control based on its current properties.
protected override void ChangeVisualState()
When overridden in a derived class, provides the default value for the HorizontalTextAlignment property.
protected abstract object CreateDefaultHorizontalTextAlignment()
The default horizontal text alignment value.
When overridden in a derived class, provides the default value for the VerticalTextAlignment property.
protected abstract object CreateDefaultVerticalTextAlignment()
The default vertical text alignment value.
When overridden in a derived class, provides the default style for the text input element.
protected abstract Style GetDefaultTextInputStyle()
Style
The default text input style.
Events
Occurs when the user finalizes the text in the input.
public event EventHandler Completed
TextChanged
EventHandler<TextChangedEventArgs>
Event that is raised when the text has changed.
public event EventHandler<TextChangedEventArgs> TextChanged
Event that is raised when the text in the input starts to change, but before the Text property is updated.
public event EventHandler<TextChangingEventArgs> TextChanging