I have a StackPanel whose children are all Expander controls.
I can Add an Expander control to the StackPanel.
I can Insert an Expander control into the StackPanel at specific location.
I can Remove an Expander control from the StackPanel at a specific location.
But, I cannot find a way to get one Expander control from the StackPanel.
There is a CopyTo, but that is for copying to an array, I only need to look an one Expander control at a specific location.
Since I can Insert into a specific location and Remove from a specific location, you'd think I'd be able to look at a specific location.
The following does not work, where "s" is the StackPanel, p (an int) is the position, and there is an Expander control at that location:
Expander x = s[p]; //  is not allowed on collections.
How do I get an item of a collection by index?
Regards, Robert Note: I work on various aspects or one or more programs, working on what is most important at the time. Some questions I ask are on aspects of the program that are not important right now or I'm using a workaround for now. I'll eventually
get back to those answers received and respond. Those that are high priority get responses very soon. Thanks for your input, it is appreciated.
View Complete Post