Home » FAQ » .NET MAUI » How do you draw a filled rounded rectangle on a Canvas in .NET MAUI?
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);
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with