Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to clear the controls in a Usercontrol

$
0
0

Hi,

I have an application where one thread is loading a page and invokes thread 2. thread 2 after completing its respective tasks it has to come and update the UI of the UserControl which Thread 1 is started.

Here is the problem is when ever the usercontrol loads i want to clear all the controls that are added previously on initialisation. I tried with Usercontrol.Children.Clear() but it didnt work.

Can you help me how to reset the controls in the usercontrol on page load

Usercontrol will have different kind of controls. we have to clear them.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>