private void TabReselected(object sender, TabLayout.TabReselectedEventArgs e) { if (e.Tab.Text == "Student Info") { StudentInfoView.FindViewById <NestedScrollView>(Resource.Id.StudentScrollview).SmoothScrollTo(0, 0); } }
private void SetStudentInfo() { StudentInfoView.FindViewById <TextView>(Resource.Id.StudentFullName) .Text = ViewModel.CurrentUser.FormattedName; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentId) .Text = ViewModel.CurrentUser.Id; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentMajor) .Text = ViewModel.CurrentUser.MajorName; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentMinor) .Text = ViewModel.CurrentUser.MinorName; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentRoom) .Text = ViewModel.CurrentUser.FormattedRoom; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentMailbox) .Text = ViewModel.CurrentUser.BoxNumber; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentBoxCombination) .Text = ViewModel.CurrentUser.BoxCombination; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentCollegianName) .Text = ViewModel.CurrentUser.FormattedCollegian; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentCollegianLocation) .Text = ViewModel.CurrentUser.CollegianLocation; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentChapelSeatSection) .Text = ViewModel.CurrentUser.FormattedChapelSection; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentChapelSeatRowNumber) .Text = ViewModel.CurrentUser.FormattedChapelRow; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentEmail) .Text = ViewModel.CurrentUser.StudentEmail; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentRoomPhone) .Text = ViewModel.CurrentUser.FormattedRoomPhone; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentSchoolAddress) .Text = ViewModel.CurrentUser.FormattedStudentAddress; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentPersonalEmail) .Text = ViewModel.CurrentUser.PersonalEmail; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentCellphone) .Text = ViewModel.CurrentUser.FormattedCellPhone; StudentInfoView.FindViewById <TextView>(Resource.Id.StudentHomeAddress) .Text = ViewModel.CurrentUser.FormattedAddress; }