Check management manually in WPF

Here is the situation: I have a dataset bound to a WPF window. The data set implements IDataErrorInfo, therefore, when the value changes in the window, a check is made for changes to a specific property. During the check, I can find that there is another control in the window that I need to check. I know only the name of the field in the dataset that I need to check, and not the actual control that binds to this field. Therefore, my questions are: 1. How can I find out which control is tied to a specific field in a data set? 2. How can I initiate verification of this code control?

Thanks!

+1
source share
1 answer

Two options, as I see:

  • I think that one way to deal with this is to use the customizer for the changed property to clear the property that is no longer valid (if it is really invalid now).
  • Another trick might be in the installer of the 1st property to raise the PropertyChanged event for the second property to make it revalued.

I would prefer the first option, since you know that changing a 1st property has a chance to invalidate another property.

+3
source

All Articles