Share via

PrintTask.IsPreviewEnabled Property


Gets or sets a value that indicates whether the PrintTask will show a print preview.

 property bool IsPreviewEnabled { bool get(); void set(bool value); };
bool IsPreviewEnabled();

void IsPreviewEnabled(bool value);
public bool IsPreviewEnabled { get; set; }
var boolean = printTask.isPreviewEnabled;
printTask.isPreviewEnabled = boolean;
Public Property IsPreviewEnabled As Boolean

Property Value



True, if print preview is enabled.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)


In some situations, displaying the print preview will take too much time and disrupt the user experience of a Universal Windows app. For this reason, the developer may wish to disable the print preview feature in favor of a smoother control flow.

By default, isPreviewEnabled is true. UWP apps that are meant to print in the background must set isPreviewEnabled to false.

Applies to