wpf how to get all TextBoxes in wpf application
- by GC87
Hi,
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 = "";
}
}