Ejemplo n.º 1
0
        public IntegratingCefSharpWindow()
        {
            InitializeComponent();

            _webView = new WebView();
            _webView.LoadCompleted += webView_LoadCompleted;
            webPlaceholder.Children.Add(_webView);

            TabPreloader.PreloadTabs(mainTab);

            ShowData(GetEmployee());
        }
        public AdvancedCefSharpWindow()
        {
            InitializeComponent();

            _webView = new WebView();

            _webView.RequestHandler = new AdvancedCefSharpRequestHandler();

            _webView.LoadCompleted += webView_LoadCompleted;
            _webView.RegisterJsObject("exposedDemoElements", new ExposedDemoElements());
            webPlaceholder.Children.Add(_webView);

            TabPreloader.PreloadTabs(mainTab);

            ShowData(GetEmployee());
        }