How do you draw a circle on a Canvas in .NET MAUI?

Platform: .NET MAUI| Category: General

To draw a circle, make the width and height arguments to the DrawEllipse method equal.
In this example, a red circle with dimensions 100×100 is drawn at (10,10):

C#

canvas.StrokeColor = Colors.Red;
canvas.StrokeSize = 4;
canvas.DrawEllipse(10, 10, 100, 100);

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.