Problem displaying message box in dialogbox

16 replies. Last post: October 7, 2011 1:15 PM by Richard Griffths
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi

I have designed a pop-up dialogbox form to mimic the Register form (using the register form from the  MVVM business template example) .  So I am looking to get the same functionality except in a pop-up form call from some other form in my app.

I am having two problems.

1)  MessageBoxServiceProvider.Show(

                        ApplicationStrings.RegistrationSuccessMessage,
                        ApplicationStrings.RegistrationSuccessCaption,
                        (dialogResult) =>
                        {
                            NavigationServiceProvider.Navigate(new Uri("/Home"UriKind.Relative), currentFocus);
                        }
                        );
This code does not now work (in the UXDialogBox version)
2) After creating a new account I just want close the form but am struggling to do so.
I have tried setting the Create User's button dialog result property to 'OK' and this does indeed close the dialog box, however it closes the dialog box even if there is an error (validation or other type of error).  Can you please advise how this can be done (using MVVM), thanks.
Thanks
Richard


All times are GMT -5. The time now is 3:39 AM.
Previous Next