How to embed IE (created using Watin) inside a WPF application [duplicate] - wpf

Can I embeded IE in my wpf application and interact with it firing events?
e.g. can I fill a form and press submit button programmatically?

Below is the link to the web browser control for WPF, this control was not part of the initial release of WPF, and was added in 3.5 SP1. As long as you are targeting 3.5 SP1 you can use this control and interact with the content in it. I have a WPF application that does use this control and we do a lot of JavaScript interactivity with the content from the browser by drawing on a WPF canvas and sending that information to the content API of the web browser control.
If you need an example I can look up some code samples from the application and send them your way.

Related

WebBrowser in C# winforms lagging

I'm currently building a desktop app using C# winforms. One of the requirement is to display the client's website on a form, so I've just added a webbrowser widget.
This webpage seems to "lag" a lot, all CSS or JQuery animations seems jaggy. I tried to open the page in IE and it doesn't lag that much.
Is there any option I need to pass to the webbrowser widget to make it more faithfull ? Some double buffering, or any other kind of parameters that I could use ?

Hosting Silverlight Control

In my WPF application I am using a Web Browser control, which is showing a Silverlight application. I have to go with this design(Web Browser and Silverlight) because, I badly need PivotViewer control, which only available on Silverlight.
Now, I need to communicate from WPF to silverlight app which was in Web Browser control (i.e. Pass an .NET List/Class).
How can I do it? and What are my options?
If your application is built around a Silverlight control, why are you hosting it in WPF? Wouldn't it be simpler to just have a Silverlight Desktop Application?

ActiveX control in WPF

I am using a thrid party SDk to display video in my WPF application.
This requires me to add a control which is part of the SDK to the UI in order to display the video. I added the control to my WPF using the windows form host
ImageViewerControl _imageViewerControl = ClientControl.Instance.GenerateImageViewerControl();
WindowsFormsHost host = new WindowsFormsHost();
host.Child = _imageViewerControl;
grid1.Children.Add(host);
When I checked the grid1.children.count it is 1, also the _imageViewerControl is not null. Yet I do not see anything loaded on the UI.
But when I use WindowsForm everything works fine. What should I look for?

How to get selected row of ListView in web browser control in WPF

I have a web site has a ListView and navigate it by using web browser control in WPF. I want to get selected item of ListView from web browser control. I can get selected text in web browser control by using Microsoft HTML Object Library but can't do this. Is there any way to do this?
Thank you.
You can interop with the web browser control from WPF using the DLR features.

Can I embeded IE in my wpf application and interact with it firing events

Can I embeded IE in my wpf application and interact with it firing events?
e.g. can I fill a form and press submit button programmatically?
Below is the link to the web browser control for WPF, this control was not part of the initial release of WPF, and was added in 3.5 SP1. As long as you are targeting 3.5 SP1 you can use this control and interact with the content in it. I have a WPF application that does use this control and we do a lot of JavaScript interactivity with the content from the browser by drawing on a WPF canvas and sending that information to the content API of the web browser control.
If you need an example I can look up some code samples from the application and send them your way.

Resources