AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.14k stars 2.26k forks source link

The default Avalonia app built with VS2022 works correctly under Win11, but has a transparent window under WSL #17379

Open sborisov-int opened 1 month ago

sborisov-int commented 1 month ago

Describe the bug

I created an Avalonia app using the wizard in VS2022. The resulting app works correctly under Win11, but has a transparent window under WSL (Ubuntu 22.04.5).

To Reproduce

Compile the included VS2022 solution on Windows. AvaloniaApplication1.zip

Expected behavior

Try running the resulting executable file under Windows. You should see a normal application window. Then copy the executable directory to WSL and try running it there. The application window will be transparent.

Avalonia version

11.1.0 and 11.1.4

OS

Linux

Additional context

No response