public static BasicBrowseAnswersFragment NewInstance() { var fragment = new BasicBrowseAnswersFragment { Arguments = new Bundle() }; return(fragment); }
void Adapter_ItemClick(object sender, RecyclerClickEventArgs e) { var question = ViewModel.Questions[e.Position]; var newFragment = BasicBrowseAnswersFragment.NewInstance(); var bundle = new Bundle(); bundle.PutString("questionId", question.ObjectId); newFragment.Arguments = bundle; FragmentManager.BeginTransaction().Replace(Resource.Id.content_frame, newFragment) .AddToBackStack(null).Commit(); }