Hello!
We are using MVVM pattern to build our application. One of our views uses number of NumericUpDown controls. If text of some NumericUpDown is set to empty string by user control displays red frame (see screenshot "validation error"). Property definition you can find in screenshot named "amount property".
The problem is that view model is not updated when text is empty and red frame is displayed. E.g. model still contains previous value.
What is correct way to notify View Model about missing data? Keep in mind that we have significant number of views and each contains set of numeric controls.
We are using MVVM pattern to build our application. One of our views uses number of NumericUpDown controls. If text of some NumericUpDown is set to empty string by user control displays red frame (see screenshot "validation error"). Property definition you can find in screenshot named "amount property".
The problem is that view model is not updated when text is empty and red frame is displayed. E.g. model still contains previous value.
What is correct way to notify View Model about missing data? Keep in mind that we have significant number of views and each contains set of numeric controls.