Rank: Member Groups: Member
Joined: 11/4/2014 Posts: 12
|
Hi, I'm getting on well with the WebBrowser component but one thing that I can't crack is how to overlay a Grid component on top of the WebBrowser surface - everything I try always ends up with the WebBrowser still be the uppermost displayed element. Any ideas? Thanks, David
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
If you use WPF, then the short answer is you can not. WPF uses a single window to render everything and EO.WebBrowser uses its own window --- which is a child window of the WPF window. In windows it is not possible for the parent window to render over the child window. Various workarounds do exist for this limitation, but may potentially introduce other problems.For example, the Popup control has its own window thus it is possible to place it on top of other windows, however it may introduce problems with focus and keyboard navigation.
If you use Windows Forms, then you should be able to put anything on top of the WebBrowser --- This also means it is technically possible for you to wrap your Grid inside a Windows Forms control and then use a Windows Form Host control to host the wrapped Grid control. Obviously this double wrap isn't the cleanest way to do things, so it should probably be considered only as a last resort.
Thanks!
|
Rank: Member Groups: Member
Joined: 11/4/2014 Posts: 12
|
Hi - thanks for the feedback. I see that in your sample tabbed browser project you have got a hamburger menu icon in the top right corner that when clicked floats a menu over the surface of the WebBrowser. How/why is this working? Thanks, David.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
That's a popup menu as mentioned in our previous reply. Popup is one of the exception for this parent child window rule because a Popup has its own window.
|