Say you have a window with 20 textboxes on it which are all bound to different BLL classes. How do I intercept a value being passed from a textbox to a property when binding with wpf? I'm looking for a generic solution instead of doing this for every property.
I can inherit from the Binding class, but is there an event in that class I can listen to whenever data is passed from an uielement to a property? Or is there a better solution?
The Binding has a Converter property to which you can assign a class that implements IValueConverter. If you can inherit from binding, maybe you can set the Converter in that specialization and go on with that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With