Method SetCornerRadius
SetCornerRadius(float?, bool)
Sets the corner radius for all initialized borders of the control.
public virtual void SetCornerRadius(float? radius, bool radiusIsPercent)
Parameters
radiusfloat?The corner radius to apply. Can be null to indicate no specific radius.
radiusIsPercentboolA boolean value indicating whether the specified radius is a percentage of the control's size.
trueif the radius is a percentage; otherwise,false.
Remarks
This method updates the corner radius for multiple visual states of the control, including normal, hovered, pressed, disabled, focused, and selected states. If radius is null, no specific corner radius is applied.