Given a Grid, I'm adding a child to it using Grid.Children.Add(element). How can I remove this element using its name? Something like Grid.Children.Remove("name")
UIElement child = grid1.FindName("name") as UIElement;
grid1.Children.Remove(child);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With