I'm looking for ways to integrate the Windows Forms ErrorProvider component into a ReactiveUI based application.
The ErrorProvider control relies on Windows Forms' BindingContext/BindingManager infrastructure, which is of course not used by ReactiveUI.
How can I, from the View object's bound Controls, "navigate" back to the properties on the ViewModel to which they are bound? I'm thinking of possibly using .NET attributes on the VM properties, but I'd need some automated way to find which property a control is bound to.
As a different approach, I could create a second property on the VM for each property which needs validation status displayed on the View, and use standard ReactiveUI binding/subscribe mechanism to call ErrorProvider.SetError(), but this would have to be manually wired up for each Control, which I'd like to avoid.
So, when iterating Controls on the View, how to "find" which VM property it is bound to, if any.