C
C#ā€¢15mo ago
ricecracker2234

ā” webview2 rendering on top of other components

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