Method DrawRadioButton
DrawRadioButton(Graphics, AbstractControl, RectD, bool, VisualControlState)
Draws a radio button control within the specified bounds, reflecting its checked state and visual appearance.
public static void DrawRadioButton(this Graphics canvas, AbstractControl control, RectD rect, bool isChecked, VisualControlState controlState)
Parameters
canvasGraphicsThe Graphics surface used for rendering.
controlAbstractControlThe AbstractControl instance where radio button will be painted. Used for scale factor and dark mode determination.
rectRectDThe bounding RectD that defines the button’s layout region.
isCheckedboolIndicates whether the radio button is currently checked.
controlStateVisualControlStateThe current VisualControlState used to render visual feedback (e.g., selected, inactive).