Exemple #1
0
        internal override void OnAppearing()
        {
            base.OnAppearing();

            if (this.isFirstStart)
            {
                return;
            }

            this.Placement              = this.configurationViewModel.Placement;
            this.HorizontalOffset       = this.configurationViewModel.HorizontalOffset;
            this.VerticalOffset         = this.configurationViewModel.VerticalOffset;
            this.IsModal                = this.configurationViewModel.IsModal;
            this.OutsideBackgroundColor = this.configurationViewModel.OutsideBackgroundColor;
            this.AnimationDuration      = this.configurationViewModel.AnimationDuration;
            this.AnimationEasing        = this.configurationViewModel.AnimationEasing;
            this.AnimationType          = this.configurationViewModel.AnimationType;
        }
		public BasePopupAnimation (PopupAnimationType animationType, float duration)
		{
			this.AnimationType = animationType;
			DefaultDuration = duration;
		}
		public BasePopupAnimation CreateAnimation(PopupAnimationType animationType)
		{
			Type type = animationDic[animationType];
			return Activator.CreateInstance(type) as BasePopupAnimation;
		}
		public PopupAnimationDTO GetDefaultDTO(PopupAnimationType animationType)
		{
			return defaultDTODic.ContainsKey(animationType) ? defaultDTODic[animationType] : PopupAnimationDTO.defaultDTO;
		}
		public PopupAnimationDTO(PopupAnimationType animationType, float duration)
		{
			this.animationType = animationType;
			this.duration = duration;
		}