예제 #1
0
        //좌측이동 애니메이션
        void MoveLeft()
        {
            DoubleAnimation MyDouble = new DoubleAnimation();

            MyDouble.To             = xml_Scroll.HorizontalOffset - SystemParameters.PrimaryScreenWidth;
            MyDouble.Duration       = new Duration(TimeSpan.FromMilliseconds(1500));
            MyDouble.EasingFunction = new CubicEase()
            {
                EasingMode = EasingMode.EaseInOut
            };
            Mediator.BeginAnimation(ScrollViewerOffsetMediator.ScrollableWidthMultiplierProperty, MyDouble);
        }