Edit

SKCanvasView.OnAfterRenderAsync(Boolean) Method

Definition

Called after the component has rendered.

protected override System.Threading.Tasks.Task OnAfterRenderAsync(bool firstRender);

Parameters

firstRender
Boolean

true if this is the first time the component has been rendered; otherwise, false.

Returns

A task representing the asynchronous operation.

Remarks

On first render, this method initializes the JavaScript interop for the HTML canvas and sets up DPI and size change watchers.

Applies to