Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host win32 window in Winui3 but win32 window cover winui3 DialogContent #9215

Closed
501586528 opened this issue Jan 9, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@501586528
Copy link

Describe the bug

I have a win32 application, there is a mainwindow. I have a win32 window, I want to host win32 window in winu3.
Firstly I get HWND of mainWindow.
in MainWindow.xamlcs
WinRT.Interop.WindowNative.GetWindowHandle(this)
Then I pass HWND of mainWindow to win32 window. And I use method SetParent(),set MainWindow as Parent of win32 window.
SetParent(children, parent);
Finally win32 window show up successfully.
But when I want to show a DialogContent, win32 window will cover DialogContent.And it couldn't be clicked.

Steps to reproduce the bug

I just Click a button that show a DialogContent. It is coverd

Expected behavior

I want to show DialogContent before win32 window, what should I do?

Screenshots

image

NuGet package version

None

Windows version

No response

Additional context

No response

@501586528 501586528 added the bug Something isn't working label Jan 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jan 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage Issue needs to be triaged by the area owners label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant