Example #1
0
        private void AnimateRotation(double to, SlideViewAnimationState state, double milliseconds)
        {
            if (this.AnimationState != SlideViewAnimationState.None)
            {
                return;
            }

            this.AnimationState             = state;
            this.rotationAnimation.Duration = new Duration(TimeSpan.FromMilliseconds(milliseconds));
            this.rotationAnimation.From     = this.rotation;
            this.rotationAnimation.To       = to;
            this.storyboard.Begin();
            this.Panel.OnSelectionAnimationStarted(this.panSign);
        }
 private void BeginAnimate(SlideViewAnimationState state)
 {
     this.storyboard.Begin();
     this.AnimationState = state;
 }