-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to use ReactiveValidationObject and INotifyDataErrorInfo in WPF #237
Comments
No. The INotifyDataErrorInfo is only supported via XAML binding, it doesn't support BindValidation. But you can make your own extension method like here for WPF. If i remember correct, the reason is because RxUI has it's own binding mechanism. |
We listen and do the setting of the property ourselves in RxUI bindings, and don't use the inbuilt classes that WPF provides, it's more multi platform aware that way. The downside is that INotifyDataErrorInfo relies on WPF inbuilt binding classes. |
There's nothing stopping you from using the inbuilt WPF Bind with RXUI, we abstract it out into a Might be a future WPF/UWP package feature. |
Thank you all for clarification. @glennawatson what do you think about to add info that |
Documentation updated, so I'm closing this. Thank you all for your time in clarification and PR review. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I'm playing with validation using
INotifyDataErrorInfo
and I'm very confused and I don't know how to use it properly. I couldn't find concrete info in documentation, only sample project gives me some clues, but I don't know if it is all what I should know.Let's say that I want to make a
TextBox
and default ErrorTemplate (red border) should be visible if value is empty. Based on code from sample I'm suspecting that I have to:TextBox
Text
to view-model using regular XAML binding,ViewModel
toDataContext
.So in short - is there another way to use
INotifyDataErrorInfo
using only ReactiveUi bindings? Unfortunately I can't turn onINotifyDataErrorInfo
in other way than regular XAML binding, documentation didn't help me in this topic, only sample application shows me how to do this in regular XAML.The text was updated successfully, but these errors were encountered: