Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing all grid's children in WPF

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.

like image 642
Phonon Avatar asked Apr 20 '11 15:04

Phonon


1 Answers

hmmm

myGrid.Children.Clear();

?

like image 164
David Avatar answered Sep 22 '22 14:09

David