Improving WPF memory usage
Posted
by Krishna
on Stack Overflow
See other posts from Stack Overflow
or by Krishna
Published on 2010-04-22T17:19:38Z
Indexed on
2010/04/22
17:23 UTC
Read the original article
Hit count: 211
wpf
|performance-tuning
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
© Stack Overflow or respective owner