You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swapchains in WinUI3 are expected to be opaque (because they are drawn by the compositor below other XAML content). The compositor is likely optimizing the case where the Mica is fully obscured by opaque content.
Describe the bug
Consider the following scenario where we create a CanvasSwapchainPanel from Win2D while the Window has Mica as backdrop:
With this, the output looks like this:
However if we change the Grid or the CanvasSwapChainPanel to have a margin or padding of 1 in any of the directions, like this:
Mica works:
To add to the unusualness, when one sets the margin and padding of the Grid and CSCP to cancel out like this:
Mica doesn't work anymore:
Note that sometimes, the screen only turns black after resizing the window.
Steps to reproduce the bug
Repro project: Mica repro.zip
Expected behavior
Mica should work without having to set a margin somewhere.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
No response
Additional context
Windows version 24H2: 26100.2314
The text was updated successfully, but these errors were encountered: