forked from OutSystems/CefGlue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
38 lines (35 loc) · 1.13 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System.Runtime.InteropServices;
using Avalonia;
using Xilium.CefGlue.Common;
using Xilium.CefGlue.Common.Shared;
namespace Xilium.CefGlue.Demo.Avalonia
{
class Program
{
static int Main(string[] args)
{
AppBuilder.Configure<App>()
.UsePlatformDetect()
.With(new Win32PlatformOptions
{
UseWindowsUIComposition = false
})
.AfterSetup(_ => CefRuntimeLoader.Initialize(new CefSettings() {
#if WINDOWLESS
WindowlessRenderingEnabled = true
#else
WindowlessRenderingEnabled = false
#endif
},
customSchemes: new[] {
new CustomScheme()
{
SchemeName = "test",
SchemeHandlerFactory = new CustomSchemeHandler()
}
}))
.StartWithClassicDesktopLifetime(args);
return 0;
}
}
}