PrintTask.IsPreviewEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
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
bool
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)
|
Remarks
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.