Strange issue with register form

1 reply. Last post: July 11, 2013 8:20 AM by Yudi
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hi

[I am using Metro template]

I have cloned the RegisterForm and RegisterFormViewModel and changed the Registerform to be a DialogBox (I need to pop up this form from a page to register users).

When completing this new form and clicking 'Create User' the password/confirmation controls display the 'This is a required field' as if the don't have a value - when they do. See attachment.

I think the issue lies with these lines which aren't fired when the form changes from UXPage to UXDialogPage

 // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            RegisterFormViewModel viewModel = this.DataContext as RegisterFormViewModel;
            // For security purpose, the Password value is passed directly from the UI controls
            // to the view model. This is done through accessor function.
            viewModel.RegistrationData.PasswordAccessor = () => Password_Input.Password;
            viewModel.RegistrationData.PasswordConfirmationAccessor = () => PasswordConfirmation_Input.Password;
        }

I think these lines

            viewModel.RegistrationData.PasswordAccessor = () => Password_Input.Password;
            viewModel.RegistrationData.PasswordConfirmationAccessor = () => PasswordConfirma

aren't running.

I don't know how to make these lines run using UXDialogBox and MVVM - so I am looking to your advice - maybe there is a better way to pop up a Register User window. I have attached image of the issue.

All times are GMT -5. The time now is 11:55 PM.
Previous Next