How do you draw a filled rounded rectangle on a Canvas in .NET MAUI?

Platform: .NET MAUI| Category: General

You can draw a filled rounded rectangle with the FillRoundedRectangle method, which also requires x, y, width, height, and corner radius arguments, of type float:
C#

canvas.FillColor = Colors.Green;
canvas.FillRoundedRectangle(10, 10, 100, 50, 12);

Share with

Related FAQs

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

Please submit your question and answer.