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