Example #1
0
 protected override void OnTouchUp(TouchEventArgs e)
 {
     cardControler.TouchUpCard(this, e);
     e.Handled = true;
     Dehightlight();
     touchPointNum = 0;
     if (touchPointNum != 3)
     {
         DoubleAnimation animation = new DoubleAnimation(1, 0, TimeSpan.FromSeconds(STATICS.ANIMATION_DURATION * 0.3));
         linkingIcon.BeginAnimation(Canvas.OpacityProperty, animation);
         copyIcon.BeginAnimation(Canvas.OpacityProperty, animation);
         if (this.Container.Children.Contains(linkingIcon))
         {
             this.Container.Children.Remove(linkingIcon);
         }
         if (this.Container.Children.Contains(copyIcon))
         {
             this.Container.Children.Remove(copyIcon);
         }
     }
     base.OnTouchUp(e);
 }