Click or drag to resize
CanvasPreviewEventArgsGetDeferral Method
Allows the app to perform asynchronous operations while processing this event.

Namespace:  Microsoft.Graphics.Canvas.Printing
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public CanvasPrintDeferral GetDeferral()

Return Value

Type: CanvasPrintDeferral

Usually, when the Preview event handler returns this indicates to CanvasPrintDocument that the application has finished all the processing required. However, if the application needs to perform asynchronous operations (for example, loading files from disk or performing calculations on a background thread) then it should defer completion using GetDeferral.

See Also