EditBase.ErrorColor Property
Gets or sets the color of the edit box’s borders, label, error icon, and error message if there is an input error.
Namespace: DevExpress.XamarinForms.Editors
Assembly: DevExpress.XamarinForms.Editors.dll
NuGet Package: DevExpress.XamarinForms.Editors
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 ErrorIconColor property to specify an individual color for the error icon.
You can also use the following properties to configure the appearance and position of the editor’s error text:
Property | Description |
---|---|
BottomTextFontSize | Configure font settings. |
Specifies whether to reserve a line to display error text. | |
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.
Example
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"/>