How to close application with "Your files are changed. Save? (Yes/No/Cancel)" dialog?

Oct 12, 2012 at 12:46 PM

Hi!

How to close application with "Your files are changed. Save? (Yes/No/Cancel)" dialog?

I can not think of the correct way do it with simple mvvm toolkit.


private void MainWindowClosing(object sender, CancelEventArgs e)
{
    e.Cancel =  ???
}

Coordinator
Oct 15, 2012 at 3:00 PM

See this blog post of mine on how to do modal dialogs:
http://blog.tonysneed.com/2011/01/28/tackling-the-problem-of-modal-dialogs-in-mvvm/

Cheers,
Tony