This is a XAML Question
I want to draw a Ellipse when mouse is clicked on the canvas in a user control....
im setting this to put the ellipse
objSurface is the Canvas on which the Ellipse is to be drawn
I want to draw a Ellipse when mouse is clicked on the canvas in a user control....
im setting this to put the ellipse
Code:
Ellipse el = new Ellipse();
el.Fill = Brushes.Black;
el.Height = 15;
el.Width = 15;
el.Margin = new Thickness(e.GetPosition(objSurface).X, e.GetPosition(objSurface).Y, 0, 0);
objSurface.Children.Add(el);
Comment