Table of Contents

Method OnPaintSurface

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

OnPaintSurface(object?, SKPaintSurfaceEventArgs)

Handles the paint surface event to render the control's visual content.

protected virtual void OnPaintSurface(object? sender, SKPaintSurfaceEventArgs e)

Parameters

sender object

The source of the event, typically the control triggering the paint operation.

e SKPaintSurfaceEventArgs

The event data containing the surface and canvas to be painted.

Remarks

This method is responsible for drawing the control's content and its children onto the provided canvas. It applies scaling, clears the background, and invokes the control's paint logic. Subclasses can override this method to customize the painting behavior. When overriding, ensure that the base implementation is called to preserve the default rendering logic.