❔ 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
.1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.