I have the following xaml code:
//some code
<ListBox>
<StackPanel Name="Mess">
</StackPanel>
</ListBox>
Then I add elements to StackPanel
.
But at a given moment I need to remove all child elemnts of Mess
. How can I do it?
Please try
Mess.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