Method CreateMenuItemRenderingModeSelector
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
controlUserControlThe UserControl for which the rendering mode can be selected.
Returns
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.