I have this loop and multiple leds. The names of the leds are Led0, Led1, Led2 etc Now i want to change the background of each Led with this loop so i use the counter iTeller. I use WPF and only work in the mainwindow.
for (int iTeller = 0; iTeller < bits.Count(); iTeller++)
{
if (bits[iTeller] == 1)
{
//this doesn't work
*Led+iTeller+.Background = Brushes.Green;*
}
}