Looking for a standard way to manage documents in a WPF application

Posted by user322383 on Stack Overflow See other posts from Stack Overflow or by user322383
Published on 2010-04-22T11:20:32Z Indexed on 2010/04/22 11:23 UTC
Read the original article Hit count: 141

Filed under:
|
|

Hi!

I'm writing a WPF application that uses one document at a time. Is there any standard way to implement the management of the current document? What I mean are the following functions:

  1. New document: if there are not saved changes in the current document, a dialog box opens ('Do you want to save changes to {0}?') with Yes/No/Cancel buttons. If Cancel is hit, the operation stops.
  2. Open document: same dialog box as at new document, and an Open dialog opens after
  3. Save document: if the current document hasn't been saved, a Save dialog opens
  4. Save as: you can imagine...

So, is there anything standard in the .NET framework like this or do I have to manually implement it?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#