Edit

SKGLView.OnPaintSurface Property

Definition

Gets or sets the callback invoked when the canvas needs to be painted.

[Microsoft.AspNetCore.Components.Parameter]
public Action<SkiaSharp.Views.Blazor.SKPaintGLSurfaceEventArgs>? OnPaintSurface { get; set; }

Property Value

An action that receives SKPaintGLSurfaceEventArgs containing the surface, canvas, and GPU context information.

Attributes

Remarks

Use this callback to perform your drawing operations. The callback is invoked when Invalidate() is called or continuously when EnableRenderLoop is true.

Applies to