WPF调用Chrome内核,(CEFSharp第三方插件)截图如下:
调用Flash页面允许无法点击。
Demo见压缩包,在Flash页面点击右键设置Flash
1 WebView chrome; 2 private void Window_Loaded(object sender, RoutedEventArgs e) 3 { 4 string url = "http://www.doc88.com/p-6136108382304.html"; 5 BrowserSettings browserSetting = new BrowserSettings { ApplicationCacheDisabled = true, PageCacheDisabled = true }; 6 chrome = new WebView(string.Empty, browserSetting) 7 { 8 Address = url, 9 //RequestHandler = this, 10 Background = Brushes.White 11 }; 12 //chrome.RegisterJsObject("callback", new CallbackObjectForJs(this)); 13 gridBrowser.Children.Add(chrome); 14 }
楼主:这个demo还有吗?