Esempio n. 1
0
        /// <summary>
        /// Core update routine.
        /// </summary>
        /// <param name="context">The context that holds information about the animation.</param>
        protected override void UpdateAnimationOverride(AnimationContext context)
        {
            context.Storyboard.Duration = this.totalDuration;
            if (this.InOutAnimationMode == InOutAnimationMode.In)
            {
                this.applicationHeaderElement = RadSlideContinuumAnimation.GetApplicationHeaderElement(context.Target);
                this.headerElement            = RadSlideContinuumAnimation.GetHeaderElement(context.Target);

                if (this.headerElement != null)
                {
                    this.headerElementScreenShotInfo = new ElementScreenShotInfo(this.headerElement);
                    this.headerElementScreenShotInfo.Popup.IsOpen = true;
                    this.ApplyPageHeaderAnimation(context);
                }

                if (this.applicationHeaderElement != null)
                {
                    this.applicationHeaderElementScreenShotInfo = new ElementScreenShotInfo(this.applicationHeaderElement);
                    this.applicationHeaderElementScreenShotInfo.Popup.IsOpen = true;
                    this.ApplyApplicationHeaderElementAnimation(context);
                }
            }

            this.ApplyPageAnimation(context);
            base.UpdateAnimationOverride(context);
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new instance of this animation that is the reverse of this instance.
        /// </summary>
        /// <returns>A new instance of this animation that is the reverse of this instance.</returns>
        public override RadAnimation CreateOpposite()
        {
            RadSlideContinuumAnimation opposite = base.CreateOpposite() as RadSlideContinuumAnimation;

            return(opposite);
        }