Currently, I have a DataGrid which is bound to some data in my ViewModel. I have ValidationRules set up for the Rows, and the Columns. What I would like to do is prevent the user from saving the file if there are any Validation Errors. I am using the RelayCommands class to route the Open, Save, etc commands to my ViewModel.
Asked
Active
Viewed 6,076 times
2 Answers
0
-
link number 3 is dead – Karolis Ryselis Apr 14 '17 at 10:51
0
You might be interested in the BookLibrary sample application of the WPF Application Framework (WAF). It disables the Save button when a validation error is active (e.g. DataGrid).

jbe
- 6,976
- 1
- 43
- 34