# .NET MAUI Editor Validation

The Telerik UI for .NET MAUI editor control provides a built-in validation mechanism. If the user enters a value that doesn't satisfy the requirements, the Editor will display an error message, which you can customize.

* `IsValueValid`(`bool`)—Specifies whether the Text entered inside the control is valid. The default value is `true`.

* `ValidationErrorMessage`(`string`)—Specifies the error message which is displayed when the text entered inside the control is not valid.

* The control in `MacCatalyst` is preserving space on its right side for the error icon. If developers are not using the validation feature of the Entry, the control has an API that makes the control takes its entire space - the `ReserveSpaceForErrorView`(`bool`) property. The default value is `true`.

The image below shows the error icon that is displayed inside the reserved space:

![Editor validation](https://www.telerik.com/maui-ui/documentation/assets/1a73b7f0cf8b3e090298d5e5202e20c4/entry_reservespaceforerrorview_property.png)

Here is an example of how to use the validation properties:

```XAML
<telerik:RadEditor ValidationErrorMessage="Value is not valid"
				   IsValueValid="False"
				   Placeholder="Enter text here"
				   PlaceholderColor="#99000000" />
```

## Styling the Error View

Use the following properties to style the error view when validation applies:

* `ValidationErrorColor` (`Color`)—Defines the custom color for the error views.
* `ValidationErrorImageStyle` (`Style` with target type `Image`)—Defines the style that applies to the error icon.
* `ValidationErrorLabelStyle` (`Style` with target type `Label`)—Defines the style that applies to the error label.

> tip For a runnable example demonstrating the Editor's Validation styling, see the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app) and go to the **Editor > Styling** category.

## See Also

* [Text Appearance](https://www.telerik.com/maui-ui/documentation/controls/editor/text-appearance)
* [Text Selection](https://www.telerik.com/maui-ui/documentation/controls/editor/text-selection)
* [Events](https://www.telerik.com/maui-ui/documentation/controls/editor/events)
* [Styling](https://www.telerik.com/maui-ui/documentation/controls/editor/styling)
* [Visual States](https://www.telerik.com/maui-ui/documentation/controls/editor/visual-states)
