简体   繁体   中英

How to open User control as Popup on top of webbrowser WPF

The hierarchy is as follows

<Grid>
    <WebBrowser ></WebBrowser>
</Grid>

Now I want to add another child to the Grid which will be shown as a PopUp. This works everywhere but when we have a WebBrowser as a child in the Grid it is not working.

Unfortunately, its not possible with Webbrowser Control in WPF.

WebBrowser control what you are using is not an actual WPF control. Its just a wrapped winforms webcontrol . Its impossible to show the WPF content on top of it.

Similar questions in SO where you can see for workaround:

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