Click here to Skip to main content
15,887,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have a application build in WPF 3.5.

We are rendering a web page , in WPF application in WebBrowser control of WPF.
We need to show a usercontrol as an Popup on top of WPF-WebBrowser control.

Have browsed over web and found its an AirSpace problem.

Any clue/soln regarding the same will be very grateful.

Thanks,
Nitish Srivastava

What I have tried:

Have searched for the problem , and found typical scenario to implement. Got clue about SetWindowPos() but doesn't know how to implement the same.
Posted
Updated 18-Feb-16 19:46pm

The WebBrowser control is just a thin wrapper around an ActiveX control. As such, it suffers from airspace problems in WPF applications, and there's no easy way to resolve that.
Mitigating Airspace Issues In WPF Applications - Presentation Source - Site Home - MSDN Blogs[^]

(This was going to be fixed in .NET 4.5, but they ended up dropping it before release.)

Also, unless you tweak the registry on every computer that runs your application, the control is stuck in IE7 mode[^]. That means you can't use any modern features in the pages you display, and some sites might not work at all.

The solution is to use a proper WPF control which doesn't have these problems. Your best bet is probably CEFSharp[^], which uses the same rendering engine as Google Chrome. There's even a WPF Quick Start guide[^] here on CodeProject.
 
Share this answer
 
v2
Don't we have any sample project relates to the same. Can we do the same using Popup Expander ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900