// Create a red Ellipse. Ellipse myEllipse = new Ellipse(); SolidColorBrush mySolidColorBrush = new SolidColorBrush(); mySolidColorBrush.Color = Colors.Black; myEllipse.Fill = mySolidColorBrush; myEllipse.StrokeThickness = 2; myEllipse.Stroke = Brushes.Black; // Set the width and height of the Ellipse. myEllipse.Width = 100; myEllipse.Height = 100; // How to set center of ellipse??? canvas1.Children.Add(myEllipse);
Ellipse
Canvas
UIElement
UpdateLayout()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)