Replies: 2 comments 2 replies
-
did something work out? |
Beta Was this translation helpful? Give feedback.
2 replies
-
u have to implement the validation of the annotaged property. maybe like that
the u implement something like or INotifyDataErrorInfo and its functionallity publick bool ButtonErrors => GetErrors("PropertyName"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose there's a simple user input form, with a confirmation button. The form's model is validated using Data Annotation attributes (System.ComponentModel.DataAnnotations) and Avalonia's respective built-in validation plugin. How does one obtain the result of the validation process (a boolean value is enough) in order to enable or disable the confirmation button, preventing the user from continuing if there's validation errors?
Beta Was this translation helpful? Give feedback.
All reactions