How to create annotations at points where user clicked such that the centre of the object coincides with the point where user clicked ?
I have the following code which draws a circle closer to the position.
public void drawBubble(double x, double y, double z){ Ellipse ellipse = new Ellipse(); Annotations annotations = new Annotations(); ellipse.Width = z; ellipse.Height = z; ellipse.Fill = Brushes.Blue; ellipse.Stroke = Brushes.Blue; ellipse.StrokeThickness = 10; Annotations.SetAttachX(ellipse, x); Annotations.SetAttachY(ellipse, y); annotations.Children.Add(ellipse); }