Beispiel #1
0
        public Animat CreateAnimat(FrameworkElement target)
        {
            var ani = new Animat(target);

            Actions.Add(ani);
            return(ani);
        }
Beispiel #2
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();
        }
Beispiel #3
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();
        }
Beispiel #4
0
 public void ReleaseAnimat(Animat ani)
 {
     Actions.Remove(ani);
 }