开发者

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 a开发者_如何学Gond draw other stuff on it.


hmmm

myGrid.Children.Clear();

?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜