Beispiel #1
0
        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)));
        }
Beispiel #2
0
        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)));
        }