public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            TextView tvName = view.FindViewById(Resource.Id.tvName) as TextView;

            tvName.Text = this.name;

            Button atras = (Button)view.FindViewById(Resource.Id.btnBack);

            atras.Click += (sender, e) =>
            {
                this.FragmentManager.PopBackStack();
            };

            Button siguiente = view.FindViewById <Button>(Resource.Id.btnGoTo3rd);

            siguiente.Click += delegate
            {
                ThirdFragment second = ThirdFragment.NewInstance();

                var transaction = this.FragmentManager.BeginTransaction();

                transaction.Replace(Resource.Id.contenedor, second);

                transaction.Commit();
            };
        }
Ejemplo n.º 2
0
        public static ThirdFragment NewInstance()
        {
            ThirdFragment fragment = new ThirdFragment();

            fragment.Arguments = new Bundle();

            return(fragment);
        }