Slagmoth
Slagmoth
CC#
Created by Slagmoth on 5/1/2023 in #help
Custom attribute for ValidationAttribute, am I able to get the property being validated dynamically?
Thanks for the reply, we have been playing with IDataErrorInfo and other things... I was able to figure out a solution for the properties in question at least. I also found how to pass the name of the property through the constructor so that helps for more dynamic things later. We tried whole row validations but none of them fired correctly. The way this was initially designed didn't have any forward thinking or extensibility in mind... none of the built in stuff from WPF datagrids were used either which would have made things a tad easier. RowValdation just didn't play nice and it would not have been viable to redesign it from scratch to get it done... one of my gripes with AGILE and MVP 😦
9 replies