In a window of my WPF application I have a number of objects which dirived from a custom control:
...
<MyNamespace:MyCustControl x:Name="x4y3" />
<MyNamespace:MyCustControl x:Name="x4y4" />
<MyNamespace:MyCustControl x:Name="x4y5" />
<MyNamespace:MyCustControl x:Name="x4y6" />
<MyNamespace:MyCustControl x:Name="x4y7" />
...
In my code I can easily reference each of them individually by name:
x1y1.IsSelected = true;
How, in my code, could I iterate through whole set of them in loop?
foreach (... in ???)
{
....
}