Assuming you've this on your XAML:
<Button Name="MyButton1" .../>
<Button Name="MyButton2" .../>
<Image Name="MyImage1" .../>
<TextBox Name="MyTextBox1" .../>
<TextBox Name="MyTextBox2" .../>
<Button Name="MyButton3" .../>
You must put the name of your controls inside an array of string, so:
string[] NameControls = { "MyButton1", "MyButton2", "MyImage1", "MyTextBox1", "MyTextBox2", "MyButton3" };
Then you can iterate the controls and access the properties:
for (int i = 0; i < NameControls.Length; i++)
{
dynamic MyControl = this.FindName(NameControls[i]);
// do something
}
For example in my case I need to change the Opacity of determinated controls so, inside the for block I've put this:
dynamic MyControl = this.FindName(NameControls[i]);
MyControl.Opacity = 0.7;