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

WebView2 DefaultBackgroundColor #4969

Open
BlameTwo opened this issue Dec 13, 2024 · 2 comments
Open

WebView2 DefaultBackgroundColor #4969

BlameTwo opened this issue Dec 13, 2024 · 2 comments

Comments

@BlameTwo
Copy link

Describe the bug

I can't make the background color of WebView2 transparent, even though I'm not loading any html content

My development environment: Visual Studio 2022 preview
WindowsAppSdk Nuget Version 1.6.241114003

It is worth noting that I turned on AOT and tried to use P/Invoke to change the current window relationship to child window and parent window (modal).

Steps to reproduce the bug

  1. According to my development environment
  2. Create a WinUI project
  3. Load a web page

Expected behavior

He should be a normal transparent color

Screenshots

Image

Image

Image

NuGet package version

Windows App SDK 1.6.3: 1.6.241114003

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022-preview

Additional context

No response

@castorix
Copy link

Maybe you can check this answer : microsoft/microsoft-ui-xaml#6527 (comment)

@BlameTwo
Copy link
Author

也许你可以查看这个答案:microsoft/microsoft-ui-xaml#6527 (评论)

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants