Method SetRenderingMode
SetRenderingMode(AbstractControl, ControlRenderingMode)
Configures the rendering mode for the specified control.
public static bool SetRenderingMode(AbstractControl control, ControlRenderingMode mode)
Parameters
controlAbstractControlThe control whose rendering mode is to be set. Cannot be null.
modeControlRenderingModeThe desired rendering mode to apply. Must be a valid value of ControlRenderingMode.
Returns
- bool
true if the rendering mode was successfully set; otherwise, false if the specified mode is unsupported.
Remarks
This method updates the rendering flags of the specified control based on the provided rendering mode. Supported modes include SkiaSharpWithOpenGL, SkiaSharp, and SoftwareDoubleBuffered. If an unsupported mode is provided, the method will return false without modifying the control.