Issue closing UXDialogBox

9 replies. Last post: September 7, 2012 4:25 AM by Richard Griffths
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I can't seem to be able to close a dialog box when I first ask/promy user to confirm closure e.g.

  

                        MessageBoxServiceProvider.Show("About to exit.  If you have added new items or amended items your changes will be lost if you haven't saved.  Are you sure you want to proceed/cancel?",
                        "Proceed and Cancel All Changes?", MessageBoxButton.YesNo, MessageBoxImage.Warning,
                        (dialogResult) =>
                        {
                            if (dialogResult != DialogResult.Yes)
                            {
                                return;
                            }
                           
                            DialogBoxServiceProvider.CloseCurrentWindow();
                           
                        });

 

I am using MVVM.
Thanks

All times are GMT -5. The time now is 7:48 PM.
Previous Next