public ChromiumControl(IEnumerable <CefCustomScheme> schemes) { var address = Routing.GetViewUrl("import.html"); var cefSettings = new CefSettings(); foreach (var scheme in schemes) { cefSettings.RegisterScheme(scheme); } Cef.Initialize(cefSettings); Dock = DockStyle.Fill; webView = new ChromiumWebBrowser(address) { Dock = DockStyle.Fill, KeyboardHandler = new ShortcutKeyboardHandler(), }; Controls.Add(webView); webView.MenuHandler = this; }
protected RedirectResult RedirectToView(string viewName) { return(base.Redirect(Routing.GetViewUrl(viewName))); }