Example #1
0
        static void MoveUp(Animat ani)
        {
            var    t = ani.Target.Margin;
            Vector v = new Vector(t.Left + 15, t.Top + 150);

            ani.StartPosition = v;
            v.Y            -= 100;
            ani.EndPosition = v;
            ani.Time        = 1000;
            ani.Play();
        }
Example #2
0
        static void MoveDownEX(Animat ani)
        {
            ani.OnPlayOver = MoveUpEX;
            var    t = ani.Target.Margin;
            Vector v = new Vector(t.Left + 15, t.Top + 150);

            ani.StartPosition = v;
            v.Y            += 100;
            ani.EndPosition = v;
            ani.Time        = 1000;
            ani.Play();
        }