Enable internal PDF viewer in WPF project

This commit is contained in:
amaitland 2016-01-13 10:10:43 +10:00
parent f4eabbb37b
commit 757b8edf1e

View File

@ -7,7 +7,9 @@ namespace CefSharp.MinimalExample.Wpf
public App() public App()
{ {
//Perform dependency check to make sure all relevant resources are in our output directory. //Perform dependency check to make sure all relevant resources are in our output directory.
Cef.Initialize(new CefSettings(), shutdownOnProcessExit: true, performDependencyCheck: true); var settings = new CefSettings();
settings.EnableInternalPdfViewerOffScreen();
Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true);
} }
} }
} }