EditBase.ErrorColor Property

Gets or sets the color of editor box borders, label and error message shown in case of input error.

Namespace: DevExpress.XamarinForms.Editors

Assembly: DevExpress.XamarinForms.Editors.dll

Declaration

public Color ErrorColor { get; set; }

Property Value

Type Description
Color

The color of editor borders, label, error message and error icon.

Remarks

The ErrorColor property specifies the color of editor borders, the label, ErrorText and ErrorIcon when the editor is in an error state (the HasError property is true).

You can also use the following properties to configure the appearance and position of the editor's error text:

Property

Description

BottomTextFontSize
BottomTextFontFamily
BottomTextFontAttributes

Configure font settings.

ReserveBottomTextLine

Specifies whether to reserve a line to display error text.

BottomTextTopIndent

Sets the distance between the editor's help or error text and its bottom border.

These properties also affect HelpText. To set the help text color for different states, use the HelpTextColor/DisabledHelpTextColor properties.

Examples

This example shows how to customize the appearance of an editor's help/error text:

State/Appearance

Default

Custom

Default

Disabled

Error

<dxe:TextEdit BottomTextFontAttributes="Bold"
              BottomTextFontSize="18"
              BottomTextTopIndent="20"
              HelpText="Bottom text"
              HelpTextColor="Green"
              DisabledHelpTextColor="LightGreen"
              ErrorColor="Brown"
              ErrorText="Error text"/>
See Also