Click or drag to resize
CanvasPrintDocumentPrintTaskOptionsChanged Event
Hook this event to be notified when the print options have changed.

Namespace:  Microsoft.Graphics.Canvas.Printing
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public event TypedEventHandler<CanvasPrintDocument, CanvasPrintTaskOptionsChangedEventArgs> PrintTaskOptionsChanged

Value

Type: Windows.FoundationTypedEventHandlerCanvasPrintDocument, CanvasPrintTaskOptionsChangedEventArgs
Remarks

This event is always raised at least once before the first Preview event is raised.

This event gives an application an opportunity to examine the new print options and determine whether or not any existing preview images need to be regenerated. If so, then InvalidatePreview can be used to trigger regeneration.

The app is also able to control the initial page that is displayed after preview settings have changed. This is useful if the page size changes and the app wants to arrange for the content that was on page 3 to still be visible, even if it is now on page 4. The CurrentPreviewPageNumber and NewPreviewPageNumber properties control this.

See Also