I did this in C# -
foreach (Control ctl in this.groupBox3.Controls)
{
if ((ctl is Textbox) && (ctl.Name.Substring(0, 1) != "l"))
{
Textbox tmp= (Textbox)ctl;
tmp.text = "whatever";
Im trying to do something similar in WPF but this time i want to find the textbox based on a string.
So I tried
TextBox temp = (TextBox).Findcontrol("txtboxNumbers");
but it complaints that the "(Textbox)" is a type but its used like a variable and it cant find the Findcontrol method :'(