I have a StackPanel that is filled with controls, I try to skip the elements and get their names, but it seems to me that I need to give each element its type in order to access the Name property.
But what if I have many different types in the StackPanel and I just want to get the name of the element?
Is there a better way to do this?
Here is what I tried:
foreach (object child in tab.Children) { UnregisterName(child.Name); }
c # wpf stackpanel
user1590636
source share