2

I'm trying to learn how to do proper wpf application and now I have a big trouble. I know how I would do this if I had to do it with Windows Forms, but I don't know how to modify it to fit with wpf. Would someone know the answer? Here is my code for Windows Forms Form_loaded event:

foreach (Control ctrl in this.Controls)
        {
            if (ctrl is TextBox)
            {
                ctrl.Text = "";
            }
        }
GC87
  • 390
  • 1
  • 5
  • 15

0 Answers0