There is a need to use WPF to place buttons on the map and be transparent, but if you use WPF's WebBrowser, the compatibility is not very good, although the implementation of placing controls on them, but not transparent.
Read a few blog, some people say is because of the compatibility of IE, change a train of thought, do not use IE browser good? This is found on the Internet Cefsharp control, which is a Google control, specific content can refer to the blog
Http://www.cnblogs.com/TianFang/p/4573324.html now introduces the installation method of Cefsharp
First: Open the VS2013----Tool-----Library Package Manager-----Package Manager Console-----pm> install-package cefsharp.wpf-version 37.0.0
I am using the 37 version, you can find the appropriate version in https://www.nuget.org/packages/CefSharp.Wpf/37.0.0, note that some versions require higher. NET. The use of the process is also very simple, the source code is as follows
Private void Window_Loaded (object sender, RoutedEventArgs e) { varnew Cefsharp.cefsettings (); CefSharp.Cef.Initialize (setting);//This function may be followed by a two parameter varnew CefSharp.Wpf.ChromiumWebBrowser (); " www.baidu.com " ; GRID_WEB.CHILDREN.ADD (WebView); }
Demo
WPF replaces Web controls with Cefsharp