private UIElement AddRect(Point Position)
        {
            var ui = new Rectangle() { Stroke = Brushes.Black, Fill = Brushes.Beige, Height = 130, Width = 130 };
            Canvas.SetLeft(ui, Position.X);
            canvastest.Children.Add(ui);
            Canvas.SetTop(ui, Position.Y);

            ManipulationProcessor manip = new ManipulationProcessor() { ManipulationSuported = System.Windows.Input.Manipulations.Manipulations2D.Translate };
            manip.ManipulationUpdate += manip_ManipulationUpdate;
            ui.AddGesture(manip);

            DragAndDrop.SetAllowDrop(ui, true);

            var target = new LinkCreatorTarget();
            target.CanDropCallback = OnCanLinkDrop;
            target.LinkDropCallback = OnLinkDrop;
            Interaction.GetBehaviors(ui).Add(target);
            Interaction.GetBehaviors(ui).Add(new TemporaryLinkCreator());

            return ui;
        }