Пример #1
0
        private void SetOpen()
        {
            DoubleAnimation openAnimation = new DoubleAnimation(50.0, new Duration(new TimeSpan(0, 0, 0, 0, 500)));

            openAnimation.EasingFunction = new BackEase();
            SlidingContainer.BeginAnimation(Canvas.RightProperty, openAnimation);
        }
Пример #2
0
        private void SetClosed()
        {
            DoubleAnimation closeAnimation = new DoubleAnimation(-520.0, new Duration(new TimeSpan(0, 0, 0, 0, 250)));

            SlidingContainer.BeginAnimation(Canvas.RightProperty, closeAnimation);
        }