New to Telerik UI for WinForms? Start a free 30-day trial
RoundRect Shape
Updated over 6 months ago
The following image shows the RoundRect shape applied to a RadPanel:

The following code shows how you can create and apply a RoundRectShape:
C#
RoundRectShape roundRectShape = new RoundRectShape();
roundRectShape.Radius = 30;
radPanel1.RootElement.Shape = roundRectShape;
radPanel1.RootElement.ApplyShapeToControl = true;
Properties
-
Radius: Gets or set the radius of the rectangle corner.
-
TopLeftRounded: allows you to disable the rounding of the top left corner.
-
TopRightRounded: allows you to disable the rounding of the top right corner.
-
BottomLeftRounded: allows you to disable the rounding of the bottom left corner.
-
BottomRightRounded: allows you to disable the rounding of the bottom right corner.