views:

55

answers:

0

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)

  1. Application Active
  2. User does work, plays with UI - enters some information in the text boxes and moves around the tabs
  3. User minimises the form to work with other applications
  4. On Minimise, Save the current state to the disk and dispose the root tabcontrol
  5. 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