I can successfully create objects dynamically and name them dynamically. Example: click on a canvas to create an image named ‘image1’, click somewhere else, and create ‘image2’ etc. But after that, what if I want to change an attribute based on the name? In my javascript days I would getElementById(‘image1’).style.color = #ffffff;
What about in c#? where is the ‘getElementById()’ so to speak?
In Winforms you can use either
or
For WPF things are different, this SO question looks like it might be helpful in that case: How can I find WPF controls by name or type?