RoundedRectangleRuntime
Introduction
RoundedRectangleRuntime can be used to draw a solid (filled) or outlined rectangle of any color. As the name suggests, it supports rounded corners.
RoundedRectangleRuntime requires using SkiaGum. For more information on platform support, see the SkiaGum Platform Support page.
Code Example
The following code creates a RoundedRectangleRuntime:
var roundedRectangle = new RoundedRectangleRuntime();
MainStack.Children.Add(roundedRectangle);
roundedRectangle.Width = 100;
roundedRectangle.Height = 100;
roundedRectangle.CornerRadius = 20;
roundedRectangle.Color = SKColors.Blue;

Last updated
Was this helpful?