/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. /// This parameter is typically used to configure the page.</param> protected override void OnNavigatedTo(NavigationEventArgs e) { info = (AutofillInfo)e.Parameter; Name.Text = info.FullName; PreferredName.Text = info.PreferredName; Birthdate.Date = info.Birthdate; if (info.Gender != null) { Sex.SelectedIndex = info.Gender.Value ? 1 : 0; } if (UserState.UseOldUnits) { Weight.PlaceholderText = "in stones"; } }
/// <summary> /// Invoked when this page is about to be displayed in a Frame. /// </summary> /// <param name="e">Event data that describes how this page was reached. /// This parameter is typically used to configure the page.</param> protected override void OnNavigatedTo(NavigationEventArgs e) { info = (AutofillInfo)e.Parameter; Name.Text = info.FullName; PreferredName.Text = info.PreferredName; Birthdate.Date = info.Birthdate; if (info.Gender != null) { Sex.SelectedIndex = info.Gender.Value ? 1 : 0; } if(UserState.UseOldUnits) { Weight.PlaceholderText = "in stones"; } }