RoundRect Shape
The following image shows the RoundRect shape applied to a RadPanel:
The following code shows how you can create and apply a RoundRectShape:
RoundRectShape roundRectShape = new RoundRectShape();
roundRectShape.Radius = 30;
radPanel1.RootElement.Shape = roundRectShape;
radPanel1.RootElement.ApplyShapeToControl = true;
Dim roundRectShape As 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.