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 a开发者_如何学Gond draw other stuff on it.
hmmm
myGrid.Children.Clear();
?
精彩评论