Click or drag to resize

ChromiumWebBrowserWaitForRenderIdleAsync Method

Version 118.6.80
Waits for the page rendering to be idle for idleTimeInMs. Rendering is considered to be idle when no Paint events have occured for idleTimeInMs. This is useful for scenarios like taking a screen shot

Namespace:  CefSharp.Wpf
Assembly:  CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 118.6.80.0 (118.6.80.0)
Syntax
public Task WaitForRenderIdleAsync(
	int idleTimeInMs = 500,
	TimeSpan? timeout = null,
	CancellationToken cancellationToken = default
)

Parameters

idleTimeInMs (Optional)
Type: SystemInt32
optional idleTime in miliseconds, default to 500ms
timeout (Optional)
Type: SystemNullableTimeSpan
optional timeout, if not specified defaults to thirty(30) seconds.
cancellationToken (Optional)
Type: System.ThreadingCancellationToken
optional CancellationToken

Return Value

Type: Task
Task that resolves when page rendering has been idle for idleTimeInMs
See Also