void OutControl_PointerPressed(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e)
        {
            if (TargetCanvas == null)
            {
                return;
            }

            PointX      = e.GetCurrentPoint(TargetCanvas).Position.X;
            PointY      = e.GetCurrentPoint(TargetCanvas).Position.Y;
            CurrentLink = null;
            TargetCanvas.PointerMoved    += TargetCanvas_PointerMoved;
            TargetCanvas.PointerReleased += TargetCanvas_PointerReleased;
            IsConnecting      = true;
            CurrentConnection = this;
            //CurrentOutControl = sender as FrameworkElement;
            e.Handled = true;
            //System.Windows.DragDrop.DoDragDrop(OutControl, OutControl, DragDropEffects.Copy);
        }
 public void TargetCanvas_PointerReleased(object sender, PointerRoutedEventArgs e)
 {
     if (TargetCanvas == null)
     {
         return;
     }
     Silent();
     if (IsConnecting)
     {
         IsConnecting = false;
         if (CurrentLink != null && TargetCanvas.Children.Contains(CurrentLink.LinkLine))
         {
             TargetCanvas.Children.Remove(CurrentLink.LinkLine); //can not need add a connection
         }
     }
     CurrentLink       = null;
     CurrentConnection = null;
     e.Handled         = true;
 }