Table of Contents

Method SetRenderingMode

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

SetRenderingMode(AbstractControl, ControlRenderingMode)

Configures the rendering mode for the specified control.

public static bool SetRenderingMode(AbstractControl control, ControlRenderingMode mode)

Parameters

control AbstractControl

The control whose rendering mode is to be set. Cannot be null.

mode ControlRenderingMode

The 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.