CanvasPrintDocumentDispose Method |
Namespace: Microsoft.Graphics.Canvas.Printing
As CanvasPrintDocument contains events there is a potential of memory leaks if any registered event handlers are not removed. An alternative to explicitly removing the events handlers is to call Dispose.
Dispose should be called whenever the application is about to stop referencing an old instance - for example, when a new CanvasPrintDocument is created or when the page is unloaded.