I have a List<T> with some UserControl s. There is a Grid in the main window, and some of the UserControl will be added to Grid.Children . Now I would like to remove a specific UserControl from this Grid , for example. I would like to do something like this
layoutRoot.Children.Remove(controlList[1]);
Is it possible? I only know FindName() and FindResource() , but all UserControl have no names, so I can not use these methods: (
Thanks in advance!
source share