Пример #1
0
 public SerializableMvxCachedFragmentInfo(
     SerializableMvxCachedFragmentInfo serializableMvxCachedFragmentInfoToClone)
 {
     Tag            = serializableMvxCachedFragmentInfoToClone.Tag;
     FragmentType   = serializableMvxCachedFragmentInfoToClone.FragmentType;
     ViewModelType  = serializableMvxCachedFragmentInfoToClone.ViewModelType;
     ContentId      = serializableMvxCachedFragmentInfoToClone.ContentId;
     AddToBackStack = serializableMvxCachedFragmentInfoToClone.AddToBackStack;
 }
 public SerializableMvxCachedFragmentInfo(
     SerializableMvxCachedFragmentInfo serializableMvxCachedFragmentInfoToClone)
 {
     Tag = serializableMvxCachedFragmentInfoToClone.Tag;
     FragmentType = serializableMvxCachedFragmentInfoToClone.FragmentType;
     ViewModelType = serializableMvxCachedFragmentInfoToClone.ViewModelType;
     ContentId = serializableMvxCachedFragmentInfoToClone.ContentId;
     AddToBackStack = serializableMvxCachedFragmentInfoToClone.AddToBackStack;
 }
 public SerializableCustomFragmentInfo(SerializableMvxCachedFragmentInfo baseFragmentInfo)
 {
     AddToBackStack = baseFragmentInfo.AddToBackStack;
     ContentId = baseFragmentInfo.ContentId;
     FragmentType = baseFragmentInfo.FragmentType;
     Tag = baseFragmentInfo.Tag;
     ViewModelType = baseFragmentInfo.ViewModelType;
     CacheFragment = baseFragmentInfo.CacheFragment;
 }
Пример #4
0
 public virtual IMvxCachedFragmentInfo ConvertSerializableFragmentInfo(
     SerializableMvxCachedFragmentInfo fromSerializableMvxCachedFragmentInfo)
 {
     return(new MvxCachedFragmentInfo(fromSerializableMvxCachedFragmentInfo.Tag,
                                      fromSerializableMvxCachedFragmentInfo.FragmentType,
                                      fromSerializableMvxCachedFragmentInfo.ViewModelType,
                                      fromSerializableMvxCachedFragmentInfo.AddToBackStack)
     {
         ContentId = fromSerializableMvxCachedFragmentInfo.ContentId
     });
 }
 public virtual IMvxCachedFragmentInfo ConvertSerializableFragmentInfo(
     SerializableMvxCachedFragmentInfo fromSerializableMvxCachedFragmentInfo)
 {
     return new MvxCachedFragmentInfo(fromSerializableMvxCachedFragmentInfo.Tag,
                    fromSerializableMvxCachedFragmentInfo.FragmentType,
                    fromSerializableMvxCachedFragmentInfo.ViewModelType,
                    fromSerializableMvxCachedFragmentInfo.AddToBackStack)
     {
         ContentId = fromSerializableMvxCachedFragmentInfo.ContentId
     };
 }
        public override IMvxCachedFragmentInfo ConvertSerializableFragmentInfo(
            SerializableMvxCachedFragmentInfo fromSerializableMvxCachedFragmentInfo)
        {
            var serializableCustomFragmentInfo = fromSerializableMvxCachedFragmentInfo as SerializableCustomFragmentInfo;
            var baseCachedFragmentInfo = base.ConvertSerializableFragmentInfo(fromSerializableMvxCachedFragmentInfo);

            return new CustomFragmentInfo(baseCachedFragmentInfo.Tag, baseCachedFragmentInfo.FragmentType,
                baseCachedFragmentInfo.ViewModelType, baseCachedFragmentInfo.AddToBackStack,
                serializableCustomFragmentInfo?.IsRoot ?? false)
            {
                ContentId = baseCachedFragmentInfo.ContentId,
                CachedFragment = baseCachedFragmentInfo.CachedFragment
            };
        }