Hi,
Ineeded to show html content inside my WPF screen. I took WindowsFormsHost and put WinForms' WebBrowser inside. It was amazingly simple.
Then I added a panel with progress bar to my screen and wanted to display itin front to show progress of some operation. But the panel was always behind the web browser ! I understand what is going on, the web browser is a real Win32 window, a child of WPF rendering window. Any WPF content will always be behind child windows.
I see two solutions:
- Create another WPF rendering window and show it in front of main WPF with webbrowser. Transparency and focus become issues here.
- Take a snapshot of the webbrowser, hide webbrowser and show only the freezed snapshot. Good trick with obvious disadvantages.
Is there any example of these solutions available ? Does anybody know a better way ?
Or does any native way exist to show HTML content in WPF ?
Thanks for help.
Regards,
Jan