I'm fairly new to programming and was just wondering if it was possible to use a string to dynamically name a new variable or object in WPF. I have seen on windows forms you could use me.controls to name things but this is not included on WPF and I haven't been able to find a definitive answer.
an example of this would be:
for i = 0 to 10
dim ("variable name " + i ) as new rectangle
The only reason I ask is I want to make a grid of rectangles that can be dynamically created when needed and that can be edited when needed too.