Hello, I don't know what do you mean by refresh. But as Michael said, if you want to clear a Panel, no matter it's a Canvas, a StackPanel, a Grid, or a custom Panel, you just need to call the Children.Clear method.
shanaolanxing - Please mark the posts as answers if they help and unmark if they don't.