Silverlight / WPF - Make Select and move tool in wpf

Asked By Chinnarasu .M on 16-Jul-13 03:07 AM
hi, i have make select and move tool , but this is work only rectangle image not work other images like line and circle
 anybody help me ...
Robbe Morris replied to Chinnarasu .M on 16-Jul-13 11:46 AM
Without seeing your code, I couldn't tell you why you could move a rectangle and not a circle.
Chinnarasu .M replied to Robbe Morris on 18-Jul-13 02:06 AM
hi, this is my below code in mouse down event

 // Remove selection on clicking anywhere the window
        if (selected)
        {
          selected = false;
          if (selectedElement != null)
          {
            // Remove the adorner from the selected element
            aLayer.Remove(aLayer.GetAdorners(selectedElement)[0]);
            selectedElement = null;
          }
        }
        // If any element except canvas is clicked,
        // assign the selected element and add the adorner
        if (e.Source != DrawingSurface)
        {
          _isDown = true;
          _startPoint = e.GetPosition(DrawingSurface);

          selectedElement = e.Source as UIElement;

          _originalLeft = Canvas.GetLeft(selectedElement);
          _originalTop = Canvas.GetTop(selectedElement);

          aLayer = AdornerLayer.GetAdornerLayer(selectedElement);
          aLayer.Add(new ResizingAdorner(selectedElement));
          selected = true;
          e.Handled = true;
        }

 select and move tool creation please give me some examples..