Replies: 6 comments
-
I've tried reducing the line height of the TextBox to force the error prompt content to be arranged horizontally, but it had no effect. |
Beta Was this translation helpful? Give feedback.
-
@rabbitism help!!! The control library I'm using is Semi , hhhhhhh~~ |
Beta Was this translation helpful? Give feedback.
-
please transfer issue to that repository. |
Beta Was this translation helpful? Give feedback.
-
But I think the way you return error message is wrong. You should return a |
Beta Was this translation helpful? Give feedback.
-
-return _errors[propertyName];
+return new [] { _errors[propertyName] }; As mentioned above, it should be an array of errors. |
Beta Was this translation helpful? Give feedback.
-
Understood, thank you for your answer. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I tried to implement data validation through INotifyDataErrorInfo, the following situation occurred.
The version of the framework used is as follows.
To Reproduce
The code for View and ViewModel is as follows.
View :
View model :
Expected behavior
I hope that the validation error prompts are displayed horizontally, and appear in a more aesthetically pleasing way, such as in a bubble.
Avalonia version
11.0.10
OS
Windows
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions