Table of Contents

Method SetCornerRadius

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetCornerRadius(float?, bool)

Sets the corner radius for all border states of the control.

public virtual void SetCornerRadius(float? radius, bool radiusIsPercent)

Parameters

radius float?

The corner radius to apply. Can be null to indicate no specific radius.

radiusIsPercent bool

A boolean value indicating whether the specified radius is a percentage of the control's size. true if 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.