Merge pull request #441 from kulikov-dev/patch-2
Update data-validation.md
This commit is contained in:
Коммит
3816dc6c7a
|
@ -64,6 +64,10 @@ public string? EMail
|
|||
Exceptions inside the getter of your property are not allowed and will result in a crash of your application.
|
||||
{% endhint %}
|
||||
|
||||
{% hint style="info"%}
|
||||
To display just an exception message without stack trace you should use ['DataValidationException'](https://learn.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/datavalidationexception-class-microsoft-dynamics-commerce-runtime) class.
|
||||
{% endhint %}
|
||||
|
||||
## Customize the appearance of the validation message
|
||||
|
||||
To display the validation messages, Avalonia has a control called [`DataValidationErrors`](http://reference.avaloniaui.net/api/Avalonia.Controls/DataValidationErrors/). This control is typically placed inside the `ControlTemplate` of all `Controls` that supports data validation, like `TextBox`, `Slider` and other. You can create your own `Style` of the `DataValidationErrors`-control in order to customize the representation of the error messages.
|
||||
|
|
Загрузка…
Ссылка в новой задаче