Ejemplo n.º 1
0
 public void SwitchKbArticles()
 {
     FragmentTransaction transaction = fm.BeginTransaction();
     if (kbarticlesFragment == null)
     {
         kbarticlesFragment = new KbArticlesFragment();
         transaction.Add(Resource.Id.frameContent, kbarticlesFragment).Commit();
     }
     else
     {
         transaction.Show(kbarticlesFragment).Commit();
     }
 }
Ejemplo n.º 2
0
        public void SwitchKbArticles()
        {
            FragmentTransaction transaction = SupportFragmentManager.BeginTransaction();

            if (kbarticlesFragment == null)
            {
                kbarticlesFragment = new KbArticlesFragment();
                transaction.Add(Resource.Id.frameContent, kbarticlesFragment).CommitNowAllowingStateLoss();
            }
            else
            {
                transaction.Show(kbarticlesFragment).CommitNowAllowingStateLoss();
            }
        }