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.

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;
Blue RoundedRectangleRuntime

Last updated

Was this helpful?