❔ webview2 rendering on top of other components

how can i fix that?
17 Replies
Jester
Jester2y ago
a little more information would be useful
ricecracker2234
ricecracker2234OP2y ago
like this
ricecracker2234
ricecracker2234OP2y ago
i want the button to be rendered on top of webview
Jester
Jester2y ago
what if you put the button above the webview in the xaml?
ricecracker2234
ricecracker2234OP2y ago
tried that
ricecracker2234
ricecracker2234OP2y ago
ricecracker2234
ricecracker2234OP2y ago
it will render on top of any components regardless of orders
Jester
Jester2y 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
ricecracker2234OP2y 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
Shinigami2y ago
I've done something like this in winforms not wpf tho
Jester
Jester2y ago
idk how you would compose a wpf layer above the webview though
Jester
Jester2y 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.
Jester
Jester2y 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
ricecracker2234OP2y ago
yeah cefsharp doesnt have that problem but it's 100x time bigger
Jester
Jester2y ago
they should make an option to render the wpf in composition so it doesnt have to be behind the webview Despair
ricecracker2234
ricecracker2234OP2y ago
yeah
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server