I'm trying to iterate forms in wpf but seems that
foreach (Control x in this.Controls)
{
if (x is TextBox)
{
do something
}
}
is not working! compiler doesn't recognize this.controls ....seems there is a difference in wpf but I don't what code should I use instead! Edit: I don't wanna use FindVisualChildren