Program.cs 612 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Xilium.CefGlue.Common;
  3. namespace Xilium.CefGlue.Demo.WPF
  4. {
  5. internal static class Program
  6. {
  7. [STAThread]
  8. private static int Main(string[] args)
  9. {
  10. var settings = new CefSettings()
  11. {
  12. #if WINDOWLESS
  13. WindowlessRenderingEnabled = true
  14. #else
  15. WindowlessRenderingEnabled = false
  16. #endif
  17. };
  18. CefRuntimeLoader.Initialize(settings);
  19. var app = new Xilium.CefGlue.Demo.WPF.App();
  20. app.InitializeComponent();
  21. app.Run();
  22. return 0;
  23. }
  24. }
  25. }