protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) { base.OnNavigatedTo(e); _speaker = App.CodeCampService.Repository.GetSpeaker(NavigationContext.QueryString["email"]); DataContext = _speaker; }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Speaker); string email = Intent.GetStringExtra("email"); _speaker = CodeCampApplication.CodeCampService.Repository.GetSpeaker(email); FindViewById<TextView>(Resource.Id.SpeakerName).Text = _speaker.Name; FindViewById<TextView>(Resource.Id.Bio).Text = _speaker.Bio; }