Example #1
0
        protected override void OnTouchDown(TouchEventArgs e)
        {
            this.CaptureTouch(e.TouchDevice);
            cardControler.TouchDownCard(this, e);
            e.Handled = true;
            Hightlight();
            previousPostion = this.currentPosition;
            touchPointNum++;
            if (touchPointNum >= 3)
            {
                if (!this.Container.Children.Contains(linkingIcon))
                {
                    this.Container.Children.Add(linkingIcon);
                }

                if (!this.Container.Children.Contains(copyIcon))
                {
                    this.Container.Children.Add(copyIcon);
                }
                DoubleAnimation animation = new DoubleAnimation(0, 1, TimeSpan.FromSeconds(STATICS.ANIMATION_DURATION * 0.3));
                linkingIcon.BeginAnimation(Canvas.OpacityProperty, animation);
                copyIcon.BeginAnimation(Canvas.OpacityProperty, animation);
            }
            base.OnTouchDown(e);
        }