So I am new to WPF and I am having issues with my windows not releasing their memory after I open them with .Show(). I basically want to open a modeless dialog. What I see happening is the memory going up when I open the new window and then when I close it via the exit button on the top right, the memory never goes down. Any ideas on freeing up the memory?
Share
If you are checking using the windows task manager, although the memory hasn’t been released by .net, you will find it has been released by your application and can be re-used.
reference/link
To make sure your application releases memory when the app closes, use Application.ShutdownMode appropriately.
reference/link