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

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:

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

Inheritance: objectRadContentViewRadCompositeContentViewRadInputView

Derived Classes: RadEditorRadEntry

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView...

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

Constructors

Initializes a new instance of the RadInputView class.

C#
protected RadInputView()

Fields

BackgroundColorProperty

BindableProperty

Identifies the BackgroundColor property.

C#
public static readonly BindableProperty BackgroundColorProperty

BackgroundProperty

BindableProperty

Identifies the Background property.

C#
public static readonly BindableProperty BackgroundProperty

BorderBrushProperty

BindableProperty

Identifies the BorderBrush property.

C#
public static readonly BindableProperty BorderBrushProperty

BorderThicknessProperty

BindableProperty

Identifies the BorderThickness property.

C#
public static readonly BindableProperty BorderThicknessProperty

CharacterSpacingProperty

BindableProperty

Identifies the CharacterSpacing property.

C#
public static readonly BindableProperty CharacterSpacingProperty

ClearButtonStyleProperty

BindableProperty

Identifies the ClearButtonStyle property.

C#
public static readonly BindableProperty ClearButtonStyleProperty

Identifies the ClearButtonVisibility property.

C#
public static readonly BindableProperty ClearButtonVisibilityProperty

CornerRadiusProperty

BindableProperty

Identifies the CornerRadius property.

C#
public static readonly BindableProperty CornerRadiusProperty

CursorPositionProperty

BindableProperty

Identifies the CursorPosition property.

C#
public static readonly BindableProperty CursorPositionProperty

FontAttributesProperty

BindableProperty

Identifies the FontAttributes property.

C#
public static readonly BindableProperty FontAttributesProperty

Identifies the FontAutoScalingEnabled property.

C#
public static readonly BindableProperty FontAutoScalingEnabledProperty

FontFamilyProperty

BindableProperty

Identifies the FontFamily property.

C#
public static readonly BindableProperty FontFamilyProperty

FontSizeProperty

BindableProperty

Identifies the FontSize property.

C#
public static readonly BindableProperty FontSizeProperty

Identifies the HorizontalTextAlignment property.

C#
public static readonly BindableProperty HorizontalTextAlignmentProperty

Represents the visual state name for invalid focused state.

C#
public const string InvalidFocusedState = "InvalidFocused"

Represents the visual state name for invalid state.

C#
public const string InvalidState = "Invalid"

IsReadOnlyProperty

BindableProperty

Identifies the IsReadOnly property.

C#
public static readonly BindableProperty IsReadOnlyProperty

Identifies the IsSpellCheckEnabled property.

C#
public static readonly BindableProperty IsSpellCheckEnabledProperty

Identifies the IsTextPredictionEnabled property.

C#
public static readonly BindableProperty IsTextPredictionEnabledProperty

IsValueValidProperty

BindableProperty

Identifies the IsValueValid property.

C#
public static readonly BindableProperty IsValueValidProperty

KeyboardProperty

BindableProperty

Identifies the Keyboard property.

C#
public static readonly BindableProperty KeyboardProperty

MaxLengthProperty

BindableProperty

Identifies the MaxLength property.

C#
public static readonly BindableProperty MaxLengthProperty

Represents the visual state name for mouse over state.

C#
public const string MouseOverState = "MouseOver"

PaddingProperty

BindableProperty

Identifies the Padding property.

C#
public static readonly BindableProperty PaddingProperty

PlaceholderColorProperty

BindableProperty

Identifies the PlaceholderColor property.

C#
public static readonly BindableProperty PlaceholderColorProperty

PlaceholderProperty

BindableProperty

Identifies the Placeholder property.

C#
public static readonly BindableProperty PlaceholderProperty

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

C#
public const string ReadOnlyFocusedState = "ReadOnlyFocused"

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

C#
public const string ReadOnlyInvalidFocusedState = "ReadOnlyInvalidFocused"

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

C#
public const string ReadOnlyInvalidState = "ReadOnlyInvalid"

Represents the visual state name for read-only state.

C#
public const string ReadOnlyState = "ReadOnly"

Identifies the ReserveSpaceForErrorView property.

C#
public static readonly BindableProperty ReserveSpaceForErrorViewProperty

SelectionLengthProperty

BindableProperty

Identifies the SelectionLength property.

C#
public static readonly BindableProperty SelectionLengthProperty

SelectionOnFocusProperty

BindableProperty

Identifies the SelectionOnFocus property.

C#
public static readonly BindableProperty SelectionOnFocusProperty

TextColorProperty

BindableProperty

Identifies the TextColor property.

C#
public static readonly BindableProperty TextColorProperty

TextProperty

BindableProperty

Identifies the Text property.

C#
public static readonly BindableProperty TextProperty

TextTransformProperty

BindableProperty

Identifies the TextTransform property.

C#
public static readonly BindableProperty TextTransformProperty

Identifies the ValidationErrorColor property.

C#
public static readonly BindableProperty ValidationErrorColorProperty

Identifies the ValidationErrorImageStyle property.

C#
public static readonly BindableProperty ValidationErrorImageStyleProperty

Identifies the ValidationErrorLabelStyle property.

C#
public static readonly BindableProperty ValidationErrorLabelStyleProperty

Identifies the ValidationErrorMessage property.

C#
public static readonly BindableProperty ValidationErrorMessageProperty

Identifies the VerticalTextAlignment property.

C#
public static readonly BindableProperty VerticalTextAlignmentProperty

Properties

Gets or sets the background brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush Background { get; set; }

Gets or sets the background color of the control.

C#
public Color BackgroundColor { get; set; }

Gets or sets the border brush of the control.

C#
[TypeConverter(typeof(BrushTypeConverter))]
public Brush BorderBrush { get; set; }

Gets or sets the border thickness of the control.

C#
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.

C#
public double CharacterSpacing { get; set; }

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.

C#
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.

C#
public ClearButtonVisibility ClearButtonVisibility { get; set; }

CornerRadius

CornerRadius

Gets or sets the corner radius of the control.

C#
[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.

C#
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.

C#
public FontAttributes FontAttributes { get; set; }

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

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

Typically this should always be enabled for accessibility reasons.

Gets or sets the font family for the text.

C#
public string FontFamily { get; set; }

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

C#
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Gets or sets the horizontal text alignment.

C#
public TextAlignment HorizontalTextAlignment { get; set; }

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

C#
public bool IsReadOnly { get; set; }

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

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

On Windows, spellchecking also turns on auto correction

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

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

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.

C#
public bool IsValueValid { get; set; }

Keyboard

Keyboard

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

C#
[TypeConverter(typeof(KeyboardTypeConverter))]
public Keyboard Keyboard { get; set; }

Gets or sets the maximum allowed length of input.

C#
public int MaxLength { get; set; }

Padding

Thickness

Gets or sets the padding.

C#
public Thickness Padding { get; set; }

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

C#
public string Placeholder { get; set; }

Gets or sets the color of the placeholder text.

C#
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.

C#
public bool ReserveSpaceForErrorView { get; set; }

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

C#
public int SelectionLength { get; set; }

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

C#
public SelectionOnFocus SelectionOnFocus { get; set; }

Gets or sets the text.

C#
public string Text { get; set; }

Gets or sets the text color.

C#
public Color TextColor { get; set; }

TextTransform

TextTransform

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

C#
public TextTransform TextTransform { get; set; }

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

C#
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.

C#
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.

C#
public Style ValidationErrorLabelStyle { get; set; }

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

C#
public string ValidationErrorMessage { get; set; }

Gets or sets the vertical text alignment.

C#
public TextAlignment VerticalTextAlignment { get; set; }

Methods

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

C#
protected override void ChangeVisualState()

When overridden in a derived class, provides the default value for the HorizontalTextAlignment property.

C#
protected abstract object CreateDefaultHorizontalTextAlignment()
Returns:

object

The default horizontal text alignment value.

When overridden in a derived class, provides the default value for the Padding property.

C#
protected abstract object CreateDefaultPadding()
Returns:

object

The default padding value.

When overridden in a derived class, provides the default value for the VerticalTextAlignment property.

C#
protected abstract object CreateDefaultVerticalTextAlignment()
Returns:

object

The default vertical text alignment value.

When overridden in a derived class, provides the default style for the text input element.

C#
protected abstract Style GetDefaultTextInputStyle()
Returns:

Style

The default text input style.

Events

Occurs when the user finalizes the text in the input.

C#
public event EventHandler Completed

TextChanged

EventHandler<TextChangedEventArgs>

Event that is raised when the text has changed.

C#
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.

C#
public event EventHandler<TextChangingEventArgs> TextChanging
In this article
DefinitionConstructorsRadInputView()FieldsBackgroundColorPropertyBackgroundPropertyBorderBrushPropertyBorderThicknessPropertyCharacterSpacingPropertyClearButtonStylePropertyClearButtonVisibilityPropertyCornerRadiusPropertyCursorPositionPropertyFontAttributesPropertyFontAutoScalingEnabledPropertyFontFamilyPropertyFontSizePropertyHorizontalTextAlignmentPropertyInvalidFocusedStateInvalidStateIsReadOnlyPropertyIsSpellCheckEnabledPropertyIsTextPredictionEnabledPropertyIsValueValidPropertyKeyboardPropertyMaxLengthPropertyMouseOverStatePaddingPropertyPlaceholderColorPropertyPlaceholderPropertyReadOnlyFocusedStateReadOnlyInvalidFocusedStateReadOnlyInvalidStateReadOnlyStateReserveSpaceForErrorViewPropertySelectionLengthPropertySelectionOnFocusPropertyTextColorPropertyTextPropertyTextTransformPropertyValidationErrorColorPropertyValidationErrorImageStylePropertyValidationErrorLabelStylePropertyValidationErrorMessagePropertyVerticalTextAlignmentPropertyPropertiesBackgroundBackgroundColorBorderBrushBorderThicknessCharacterSpacingClearButtonStyleClearButtonVisibilityCornerRadiusCursorPositionFontAttributesFontAutoScalingEnabledFontFamilyFontSizeHorizontalTextAlignmentIsReadOnlyIsSpellCheckEnabledIsTextPredictionEnabledIsValueValidKeyboardMaxLengthPaddingPlaceholderPlaceholderColorReserveSpaceForErrorViewSelectionLengthSelectionOnFocusTextTextColorTextTransformValidationErrorColorValidationErrorImageStyleValidationErrorLabelStyleValidationErrorMessageVerticalTextAlignmentMethodsChangeVisualState()CreateDefaultHorizontalTextAlignment()CreateDefaultPadding()CreateDefaultVerticalTextAlignment()GetDefaultTextInputStyle()EventsCompletedTextChangedTextChanging
Not finding the help you need?
Contact Support