Ejemplo n.º 1
0
 static public int Play(IntPtr l)
 {
     try {
         XTween self = (XTween)checkSelf(l);
         self.Play();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
        private void PlayAnimation1(object sender, TappedRoutedEventArgs e)
        {
            Button bt = (Button)sender;

            bt.IsEnabled = false;
            double originWidth = Target1.Width;

            var tween = new XTween(Target1, "Width", originWidth, cellWidth_ - 20, 2, XTween.Easing.EaseExpoInOut);

            tween.OnCompleted += (sender_, e_) => {
                Target1.Width = originWidth;
                bt.IsEnabled  = true;
            };
            tween.Play();
        }