Esempio n. 1
0
 /// <summary>
 /// The methods provided in this section are simply used to allow
 /// NavigationHelper to respond to the page's navigation methods.
 /// <para>
 /// Page specific logic should be placed in event handlers for the
 /// <see cref="NavigationHelper.LoadState"/>
 /// and <see cref="NavigationHelper.SaveState"/>.
 /// The navigation parameter is available in the LoadState method
 /// in addition to page state preserved during an earlier session.
 /// </para>
 /// </summary>
 /// <param name="e">Event data that describes how this page was reached.</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     _navigationHelper.OnNavigatedTo(e);
     DataContext = new CreateAccountPageViewModel(Frame);
 }
 public CreateAccountPage()
 {
     InitializeComponent();
     NavigationPage.SetBackButtonTitle(this, "");
     BindingContext = viewModel = new CreateAccountPageViewModel(this.Navigation);
 }