-
I have issues to make a transparent/semi-transparent SwapChainPanel work. I tried the following
The content is opaque always. And when i composite
The grid becomes opaque too. What are the correct ways to make a SwapChainPanel transparent? The content of the swap chain panel is rendered with Direct2D with a target of the following descriptions
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
They added a black/white background (depending on current theme) in Windows App SDK 1.1.0 |
Beta Was this translation helpful? Give feedback.
-
Opacity works, but as I said, the SwapChainPanel is covered by the background... |
Beta Was this translation helpful? Give feedback.
-
If you change for example the width : Width ="400" of SwapChainPanel , you will see the Red Grid. |
Beta Was this translation helpful? Give feedback.
-
Not sure of the result you want to get, but a workaround can be to subclass with WM_ERASEBKGND and use the same color as parent Grid |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, blending a swapchain with winui 3 content is not currently supported (see #6893). This is a regression compared to the inbox XAML layer. |
Beta Was this translation helpful? Give feedback.
-
I've faced a similar issue where I want to display some animation effects by overlaying a SwapChainPanel on top of existing WinUI3 controls. |
Beta Was this translation helpful? Give feedback.
-
I dont know whether this is what u want transparent swapchainpanel |
Beta Was this translation helpful? Give feedback.
Unfortunately, blending a swapchain with winui 3 content is not currently supported (see #6893). This is a regression compared to the inbox XAML layer.