/// <summary> /// The create. /// </summary> /// <param name="windowInfo"> /// The window info. /// </param> public void Create(CefWindowInfo windowInfo) { if (this.mClient == null) { IoC.RegisterInstance(typeof(CefGlueBrowser), typeof(CefGlueBrowser).FullName, this); this.mClient = new CefGlueClient(CefGlueClientParams.Create(this)); } CefBrowserHost.CreateBrowser(windowInfo, this.mClient, this.mSettings, this.StartUrl); }
/// <summary> /// The create. /// </summary> /// <param name="windowInfo"> /// The window info. /// </param> public void Create(CefWindowInfo windowInfo) { if (mClient == null) { IoC.RegisterInstance(typeof(CefGlueBrowser), typeof(CefGlueBrowser).FullName, this); mClient = new CefGlueClient(CefGlueClientParams.Create(this)); } mSettings = mSettings ?? new CefBrowserSettings(); mSettings.DefaultEncoding = "UTF-8"; mSettings.FileAccessFromFileUrls = CefState.Enabled; mSettings.UniversalAccessFromFileUrls = CefState.Enabled; mSettings.WebSecurity = CefState.Enabled; CefBrowserHost.CreateBrowser(windowInfo, mClient, mSettings, StartUrl); }