private void ImageButton_Click(object sender, EventArgs e) { FragmentTransaction ft = FragmentManager.BeginTransaction(); DefectAddImageFragment defectAddImage = DefectAddImageFragment.NewInstance(ref defect); ft.Replace(Resource.Id.container1, defectAddImage); ft.Commit(); }