Click or drag to resize
CanvasPrintDocumentInvalidatePreview Method
Tells the print preview dialog that it needs to request the print preview to be regenerated.

Namespace:  Microsoft.Graphics.Canvas.Printing
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void InvalidatePreview()
Remarks

The system will automatically invalidate if the page size has changed. However, if there are other options that affect the way that the preview is generated (eg PrintPageDescription.ImageableRect or PrintTaskOptions.ColorMode) then the app should explicitly call InvalidatePreview().

The PrintTaskOptionsChanged event is raised whenever an option is changed and this would be an appropriate place to examine the new options to see if the preview needs invalidating.

See Also