Professional Documents
Culture Documents
Use of CefSharp Under WPF - Programmer Sought
Use of CefSharp Under WPF - Programmer Sought
ProgrammerSought ☰
search
TOP
https://www.programmersought.com/article/76906790768/ 1/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
I have been using WPF's own WebBrowser Control, but because it uses the IE kernel, it is difficult to use, and
various errors are reported. So I changed to an open source browser package, CefSharp, which supports Winform
and WPF, embeds Chrome browser components and has more detailed documentation.
installation
1. Install through Nuget, right click on the project -> Manage Nuget package -> search for
CefSharp in the opened interface, and install in turn CefSharp.Common with CefSharp.Wpf , As
for cef.redist.x64 with cef.redist.x86 It will be installed automatically.
TOP
https://www.programmersought.com/article/76906790768/ 2/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Because CefSharp does not support ANYCPU, to configure x86, x64, click the menu Generate ->
Configuration Manager. Select the solution platform, click Edit, delete x64 and x86 first, then re-create it, and
reconfiguration is easier.
TOP
https://www.programmersought.com/article/76906790768/ 3/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
use
It can be added directly in the xaml file when used ChromiumWebBrowser Controls, but ChromiumWebBrowser Controls
especially consume memory, so dynamic addition in the code is also a good choice.
1 <Grid x:Name="ctrlBrowerGrid">
2 <wpf:ChromiumWebBrowser x:Name="Browser"/>
3 </Grid>
1 Browser.Load(“www.baidu.com”);
https://www.programmersought.com/article/76906790768/ 4/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
A ti ((Ht l C ki ))
https://www.programmersought.com/article/76906790768/ 5/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Action((Html, Cookies));
19
return;
20
}
21
}
22
TOP
https://www.programmersought.com/article/76906790768/ 6/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
These Wonders Happen To Your Do Essential Oils Control Or 7 Herbs That Can Help You Lose
Body If You Start Consuming Reduce Snoring? 10 Oils To Help Weight
Two Eggs A Day You Sleep
Photos Of Shelter Dogs The Upset Mom Of A 3-Year-Old Famous Celebs Who Underwent
Moment They Realize They're Opens Husband's Car Trunk And Gender Reassignment Surgery
Being Adopted Uncovers A Secret That Was
Unknown For 7 Years
Intelligent Recommendation
https://www.programmersought.com/article/76906790768/ 7/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Everyone in the development of WPF client program when it comes to browsers, then nothing more
than to use two kinds: first thought is Microso 's own WebBrowser, but o en comes with a lot of
things ...
TOP
https://www.programmersought.com/article/76906790768/ 8/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
More Recommendation
https://www.programmersought.com/article/76906790768/ 9/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
(1) If the browser loca on has a problem, you need to set Cef.EnableHighDPISupport (); (2) To zoom the
browser to set browser.SetZoomLevel (1.25); void webbrowser_FrameLoadEnd(object sender, F...
Related Posts
Basic use of CefSharp For WPF
Use cefsharp in wpf to load local html webpage and realize the interac on of cs and js, and
cefsharp supports any cpu
[ ]C# Based on WPF, use CefSharp to do universal crawler
[ ]C# Based on WPF, use CefSharp to do universal crawler
Using cefsharp in WPF
CefSharp For WPF hide scrollbars
CefSharp For WPF hide scrollbars
WPF CefSharp Rep le
wpf integrated cefSharp
Cefsharp for WPF basics
OPEN AN ACCOUNT
TOP
https://www.programmersought.com/article/76906790768/ 10/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Popular Posts
JavaFX learning example 6
jQuery or selector?
LeetCode 011 container with the most water
Detailed C language structure
Elementary Data Structure
C # achieve the specified cell operates EXCEL
Small trap on xxxxxxRepository.search () method of a page
Python implements convolu on calcula on, smoothing filter, Gaussian filter, Sobel operator,
Prewi operator
[Solu on] Luogu P2661 [NOIP2015] informa on transmission and collec on
Study notes for the MDSeq-R package (direct paste code)
TOP
https://www.programmersought.com/article/76906790768/ 11/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Recommended Posts
Perfect number
Using tags in Cocos2d-x Lua
The Java Evolu on of the Eclipse Collec on
Use Linux Raspberry Pi to read JY61 serial port data
About adding a final in the code set to facilitate the reasonable alloca on of applica on memory
--- HTML front-end
MyTools TOP
https://www.programmersought.com/article/76906790768/ 12/13
4/17/2021 Use of CefSharp under WPF - Programmer Sought
Related Tags
WPF
CefSharp
technology
C#
c#
xaml
wpf
CEFSharp
NLog
h pclient
TOP
https://www.programmersought.com/article/76906790768/ 13/13