示例#1
0
        static ViewModelStoreFragment Create(FragmentManager ft)
        {
            var holder = new ViewModelStoreFragment();

            ft.BeginTransaction()
            .Add(holder, HOLDER_TAG)
            .CommitAllowingStateLoss();
            return(holder);
        }
示例#2
0
 public static IViewModelStore GetViewModelStore(this Fragment owner)
 {
     return(ViewModelStoreFragment.FindOrCreate(owner));
 }