I have developed one UWP application.In that nearly 20 windows are there.
Every window contains lot of Xaml
controls. For some time it's working fine.
But after usage of some time application is getting very slow.
After doing some R&D I came to know that it's called Memory Leakage.
As per my knowledge in .Net Garbage Collector has to take care of this if I am not wrong.It seems like In UWP Application it is not happening. So I thought I should use GC.Collect()
in Page Unload Event
.
Is that correct approach or anything else I need to do to release memory which are used by the window controls?