public override void OnDraw(AvaloniaDrawingContext context) { var rx = Width / 2f; context.AvaloniaContext.DrawGeometry( context.Brush, context.Pen, new EllipseGeometry(new Rect(X, Y, rx, rx))); }
public override void OnDraw(AvaloniaDrawingContext context) { var w = Width; context.AvaloniaContext.DrawGeometry( context.Brush, context.Pen, new Avalonia.Media.RectangleGeometry(new Rect(X, Y, w, w))); }