1

I have a form with some controls (say TextBox) which Text property is bound to some DataContext (say DataRowView).

I want to know if this row was filled correctly without any validation errors. I have found one possible solution. But I do not like it. It is not good to enum all the DependencyObjects on a form. Is there any way to enum only those DependencyObjects which was bound to this DataContext? May be some magic with BindingOperations...

Community
  • 1
  • 1
ZAB
  • 963
  • 10
  • 18

1 Answers1

0

How do you validate the input-data?

Maybe you could use a BindingGroup and then check it's Validation.HasError attached property.

Mike1991
  • 294
  • 2
  • 12