WPF Webbrowser acting strange - wpf

I have a WPF application using WPF WebBrowser control. The appilcation is running on windows (as a Kiosk). The webbrowser is configured to show some service from the web. When the users try to sign in, that website redirect to the 3rd party Authentication Provider (SAML). After the user had successfully sign-ined, the 3rd party Authentication Provider redirect the user to the original website.
And the original website shows the error that the website needs the "cookies to be enable".
When using the Windows Forms Browser inside the WindowsFormHost on the same WPF application, there's no such error.
On IE11 there's also no error.
The website and 3rd party Authentication provider is not under my control.
The WPF WebBrowser control in the application is forced to use IE11 through BrowserEmulation.
Can someone tell me why the WPF WebBrowser control behavior is different from the WindowsForm Browser control?

Related

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?

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.

Losing ASP.Net Session in popup window from Windows Forms Web Browser Control

I'm using Web Browser Control in a windows form (vb.net) to display one of our website (ASP.NET) as a part of the windows application. Everything works fine, but when I've a popup window from the website page, I'm loosing the ASP.Net session. I've used extended version of web browser control to have Navigate2 event to catch the popup window and open it in a windows form web browser control again, then it works, but I have problems with size of the popup and close button in the html popup window.
Please let me know if there is a work around for loosing session in Web browser control popup window in asp.net.
How can I open a popup window from my winforms web browser control without loosing the session?

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

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.

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