Vogen icon indicating copy to clipboard operation
Vogen copied to clipboard

make defaultable values validatable

Open dzmitry-lahoda opened this issue 2 years ago • 2 comments

https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.ivalidatableobject.validate .

dzmitry-lahoda avatar Jan 23 '22 08:01 dzmitry-lahoda

Hi @dzmitry-lahoda - visiting some old comments now that I've got a bit of time free. Do you mean to make the generated code IValidatableObject?

SteveDunn avatar May 03 '22 05:05 SteveDunn

yes, so it will depend on componentmodel. and may be using validation attributes support on ctor parameters us enough. so that when error is raised it looks noce in xaml or api.

dzmitry-lahoda avatar May 03 '22 06:05 dzmitry-lahoda