简体   繁体   中英

Windows Forms Web Browser User Control updating in WPF

I'm trying to use a Windows Forms Web Browser User Control in my WPF Application.

<WindowsFormsHost Width="900" Grid.Column="0" Height="700" x:Name="WinFormsHost1" HorizontalAlignment="Left" Margin="5" VerticalAlignment="Top"  Grid.ColumnSpan="2"/>

In my code I set the child of the WindowsFormsHost to an existing Web Browser in another object

WinFormsHost1.Child = bot.WebBrowser;

The Chrome Web Browser here is updating values in a table I need the user to be able to view (and see updated) - but but the other one hosted in my project is not updating, I have circled a value that has updated in Chrome but not in my wpf application.

WPF Application on Left, Google Chrome on the Right

http://i.imgur.com/73tBRu3.png

I would suggest that you follow Kess and test this on plain old IE first. If Internet Explorer does not work as well then the web browser control is not for you. I would suggest using Geckofx (Firefox Embedded C# control) or CefGlue (Chromium Embed) to display your information to the user.

Geckofx Control

CefGlue Control

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM