Inheritance: Cirrious.MvvmCross.Droid.FullFragging.Fragments.EventSource.MvxEventSourceFragment, IMvxFragmentView
        /// <summary>
        /// Create new instance of a Fragment
        /// </summary>
        /// <param name="bundle">Usually this would be MvxViewModelRequest serialized</param>
        /// <returns>Returns an instance of a MvxFragment</returns>
        public static MvxFragment NewInstance(Bundle bundle)
        {
            // Setting Arguments needs to happen before Fragment is attached
            // to Activity. Arguments are persisted when Fragment is recreated!
            var fragment = new MvxFragment { Arguments = bundle };

            return fragment;
        }
Exemple #2
0
        /// <summary>
        /// Create new instance of a Fragment
        /// </summary>
        /// <param name="bundle">Usually this would be MvxViewModelRequest serialized</param>
        /// <returns>Returns an instance of a MvxFragment</returns>
        public static MvxFragment NewInstance(Bundle bundle)
        {
            // Setting Arguments needs to happen before Fragment is attached
            // to Activity. Arguments are persisted when Fragment is recreated!
            var fragment = new MvxFragment {
                Arguments = bundle
            };

            return(fragment);
        }
		public void CreateViewFor(MvxFragment fragment, IMvxViewModel viewModel, int container){
	
			fragment.ViewModel = viewModel;

			FragmentManager.BeginTransaction ()
				.Replace (container, fragment)
				.Commit ();
		}