C#C
C#3y ago
Elio

❔ WPF Validation

Hi, i've created a UserViewmodel which contains 2 properties,
name
and age.
I've setup all the IDataErrorInfo that i needed in my viewmodel (age < 100 for exemple).

I use WPF and i'd like to know if it is possible to bind the propertie age to a ModalDialog which contains a texbox to get back the age from the user.
And my problem there is that i need to send UserViewmodel to keep the Validation model that i've set but it means that i can't reuse ModalDialog for another viewmodel for example FamilyViewmodel with properties ChildrenNumber.
Was this page helpful?