I want something like this
foreach (TextBox tb in mainGrid.Children)
{
tb.Text = "";
}
But this gives me all Elements. Thanks for help
I want something like this
foreach (TextBox tb in mainGrid.Children)
{
tb.Text = "";
}
But this gives me all Elements. Thanks for help
I've done it with CheckBox, I let you check :
foreach(CheckBox x in this.GridEquipement.Children.Where(x=> x.GetType()==typeof(CheckBox)))
{
x.IsVisible = true;
}