var newFragment = new mybacklogF (); var ft = FragmentManager.BeginTransaction (); ft.Replace (Resource.Id.main_FragmentContainer, newFragment,"Homepage"); ft.AddToBackStack ("Homepage"); ft.Commit ();
后退
Button btnBack = view.FindViewById<Button> (Resource.Id.LEFT_BUTTON); btnBack.Visibility = ViewStates.Visible; btnBack.Click += (object sender, EventArgs e) => { FragmentManager.PopBackStack(); };
Mono Fragment之间转换,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/phinex/p/3853539.html