Table of Contents

Method CreateMenuItemRenderingModeSelector

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

CreateMenuItemRenderingModeSelector(UserControl)

Creates a menu item that allows the user to select the rendering mode for the specified control.

public static MenuItem CreateMenuItemRenderingModeSelector(UserControl control)

Parameters

control UserControl

The UserControl for which the rendering mode can be selected.

Returns

MenuItem

A MenuItem containing options to switch between different rendering modes.

Remarks

The menu includes options for "Software", "OpenGL", and "SkiaSharp" rendering modes. Selecting an option updates the rendering mode of the specified control and displays a tooltip indicating the selected mode. The menu dynamically updates the checked state of its items based on the current rendering mode when opened.