I'm currently developing an UWP app and using the Windows.Graphics.Printing.PrintManager
class to show the preview window. I have some controls which affect the result and I call printDocument.InvalidatePreview()
to refresh the preview when user changes them. It works fine until user resizes the window. After that the preview will not be updated after calling printDocument.InvalidatePreview()
.
It’s absolutely unclear what’s going on within InvalidatePreview
, because the documentation is very poor and there’s no source code.
Does anyone know a fix or a workaround for that?