Skip to main content
A newer version of this page is available. .

EditBase.ErrorIconColor Property

Gets or sets the color of an icon displayed when HasError is set to true. This is a bindable property.

Namespace: DevExpress.Maui.Editors

Assembly: DevExpress.Maui.Editors.dll

NuGet Package: DevExpress.Maui.Editors

Declaration

public Color ErrorIconColor { get; set; }

Property Value

Type Description
Color

The icon color.

Remarks

The editor gets a color for the error icon from the applied theme. Use the ErrorIconColor property to apply a custom color to the error icon. If this property is not specified, the error icon is colored according to the ErrorColor property.

If you need the editor to display the error icon in its original color, set the ErrorIconColor property to {x:Static dxci:DXColor.Default}:

<ContentPage ... 
             xmlns:dxci="clr-namespace:DevExpress.Utils;assembly=DevExpress.Maui.Core">
    <dxco:SimpleButton ...
                       ErrorIconColor="{x:Static dxci:DXColor.Default}"/>
</ContentPage>
See Also