c1276f824d
shutdownOnProcessExit has been removed
26 lines
841 B
C#
26 lines
841 B
C#
using System;
|
|
using System.Windows;
|
|
|
|
namespace CefSharp.MinimalExample.Wpf
|
|
{
|
|
public partial class App : Application
|
|
{
|
|
public App()
|
|
{
|
|
//Perform dependency check to make sure all relevant resources are in our output directory.
|
|
var settings = new CefSettings();
|
|
settings.EnableInternalPdfViewerOffScreen();
|
|
|
|
var osVersion = Environment.OSVersion;
|
|
//Disable GPU for Windows 7
|
|
if (osVersion.Version.Major == 6 && osVersion.Version.Minor == 1)
|
|
{
|
|
// Disable GPU in WPF and Offscreen examples until #1634 has been resolved
|
|
settings.CefCommandLineArgs.Add("disable-gpu", "1");
|
|
}
|
|
|
|
Cef.Initialize(settings, performDependencyCheck: true, browserProcessHandler: null);
|
|
}
|
|
}
|
|
}
|