I have a List<T>
with some UserControl
s.
On the main window there is a Grid
and some of the UserControl
s will be added to Grid.Children
.
Now I would like to be able to remove specific UserControl
s from this Grid
e.g. I would like to do something like this
layoutRoot.Children.Remove(controlList[1]);
Is this possible?
I only know FindName()
and FindResource()
but all the UserControl
s don't have names so that I can't use these methods :(
Thanks in advance!
just an idea to get you started, if you know the type of your user control, you can use methods like this: