I'm trying to remove all children (and sub-children) of a Grid
in WPF (I'm really new to the whole WPF business). Is there a good way of doing it programmatically? I need to do this so that I could leave an empty canvas (Grid
) at one point and draw other stuff on it.
hmmm
myGrid.Children.Clear();
?
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