Improving WPF memory usage
- by Krishna
Hello developers
Is there any way you can store the UI state to disk when a WPF form has been minimised. I have a complex GUI with few Tab Controls and it consumes quite a bit of memory which is kept allocated when the application is not active. I was hoping one of you may have got this working along the lines (or similar)
Application Active
User does work, plays with UI - enters some information in the text boxes and moves around the tabs
User minimises the form to work with other applications
On Minimise, Save the current state to the disk and dispose the root tabcontrol
On Activiate, build the root tabcontrol from the disk and add to the controls collection
Before I divein to do this, I thought it will help me if I ask this question here.
Please let me know your thoughts