Skip to content

Drawing over an Embedded Process/Window #3879

Discussion options

You must be logged in to vote

To put it bluntly, no.
There are a couple of things at play here which works against you. First, grabbing a window and shoving it into another tends to require cooperation from both windows for everything to work correctly. There is no Xaml control or method that officially supports hosting a HWND inside a WinUI 3 application. This means that WinUI 3 is unaware of the embedded window.
Second, WinUI 3 uses an implementation of the Visual Layer to do the drawing. For desktop applications, this is built upon DirectComposition. This means that this model is in use. There are two layers. The lowest layer, child windows are drawn on top of that, then finally there is an upper layer. Each layer …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by BertrandDeSaintBezier
Comment options

You must be logged in to vote
2 replies
@DarranRowe
Comment options

@501586528
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants