Exemple #1
0
        public void AnimatePiece(Thickness newMargin)
        {
            var animation = new ThicknessAnimation
            {
                To         = newMargin,
                SpeedRatio = CPiece.PieceSize / Margin.Difference(newMargin)
            };

            animation.Completed += MoveAnimationCompletedEventHandler;
            CurrentAnimation     = animation;
            BeginAnimation(MarginProperty, animation);
        }