-3

Is it possible to check a form for any empty text boxes rather than having to put a check on each individual text box with an if? Any help would be much appreciated.

G P H
  • 3
  • 2

1 Answers1

0

I'm not that familiar with WPF, but you might try to get a list of the child-elements in a form, and for each, check if they are of type Textbox. If so, perform your validation.

Kjartan
  • 18,591
  • 15
  • 71
  • 96