❔ webview2 rendering on top of other components

how can i fix that?
17 Replies
Gooster
Gooster3y ago
a little more information would be useful
ricecracker2234
ricecracker2234OP3y ago
like this
ricecracker2234
ricecracker2234OP3y ago
i want the button to be rendered on top of webview
Gooster
Gooster3y ago
what if you put the button above the webview in the xaml?
ricecracker2234
ricecracker2234OP3y ago
tried that
ricecracker2234
ricecracker2234OP3y ago
ricecracker2234
ricecracker2234OP3y ago
it will render on top of any components regardless of orders
Gooster
Gooster3y ago
well it might use composition to draw the webview in the window so it would be hard to get something to display above it
ricecracker2234
ricecracker2234OP3y ago
and the issue for it on github is still open https://github.com/MicrosoftEdge/WebView2Feedback/issues/356
GitHub
WebBrowser overlaps other controls in WPF? · Issue #356 · Microsoft...
I am looking to display some WPF controls as overlay on top of web browser control. The moment you add webbrowser control, all other controls on the Page seize to exist. Is this a bug or how the co...
Shinigami
Shinigami3y ago
I've done something like this in winforms not wpf tho
Gooster
Gooster3y ago
idk how you would compose a wpf layer above the webview though
Gooster
Gooster3y ago
GitHub
Windows.UI.Composition-Win32-Samples/README.md at master · microsof...
Windows.UI.Composition Win32 Samples. Contribute to microsoft/Windows.UI.Composition-Win32-Samples development by creating an account on GitHub.
Gooster
Gooster3y ago
probably not if you wanna go crazy i think its possible to create a win32 window then add a webview to it and then layer a wpf window on top of it 🙈 but thats a mess
ricecracker2234
ricecracker2234OP3y ago
yeah cefsharp doesnt have that problem but it's 100x time bigger
Gooster
Gooster3y ago
they should make an option to render the wpf in composition so it doesnt have to be behind the webview Despair
ricecracker2234
ricecracker2234OP3y ago
yeah
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?