Skip to content

[6.7] Win32 SystemBackdrop (Mica/Acrylic) leaves stale pixels after navigation or resize #24926

Open

Description

@MartinZikmund

Current behavior 🐛

On Uno 6.7 (Skia Desktop, Win32) a window with a SystemBackdrop (MicaBackdrop / DesktopAcrylicBackdrop) and transparent page backgrounds leaves stale pixels after the content changes or the window is resized:

  • navigating a Frame between pages leaves the previous pages' pixels on screen, so text from several pages overlaps;
  • several NavigationViewItems look selected at once;
  • translucent card backgrounds (CardBackgroundFillColorDefaultBrush) turn nearly white, because they are alpha-blended over their own previous frame again and again;
  • every window resize stacks one more copy of the layout on screen (also reported by a third party in 6.7 samples Uno.Samples#963).

With SystemBackdrop = null (opaque page background) it renders correctly.

This is already fixed on master (7.0), but 6.7 is the current stable and still has it. This issue is a request to backport a fix to release/stable/6.7.

Expected behavior 🎯

Each frame shows only the current content over the backdrop, as on WinUI and on 7.0.

How to reproduce it (as minimally and precisely as possible) 🔬

  1. Create an Uno app with Uno.Sdk 6.7.x, Skia renderer, net10.0-desktop, and run it on Windows 11 in Release.
  2. In MainWindow set the backdrop and make the content transparent:
public MainWindow()
{
    InitializeComponent();
    SystemBackdrop = new MicaBackdrop();
}
<!-- MainWindow.xaml: a NavigationView hosting a Frame, with a few pages that have
     text and a card (Border with {ThemeResource CardBackgroundFillColorDefaultBrush}).
     Pages use Background="Transparent". -->
  1. Click between the navigation items (or just resize the window).
  2. Observe ghosted text from earlier pages, multiple selected-looking items, and cards getting lighter with each navigation.
  3. Set SystemBackdrop = null and repeat: the rendering is clean.

On 7.0.0-dev.1429 the same app renders cleanly.

Workaround 🛠️

None found short of dropping the backdrop or using an opaque page background.

Renderer 🎨

  • Skia

Affected platforms 📱💻🖥️

Desktop (Windows). On macOS the similar ghosting in #24495 is a separate blend-mode bug in the shared RetainedLayer blit, fixed by #24546.

Uno.Sdk version (and other relevant versions) 📦

Broken: Uno.Sdk 6.7.30 (and current release/stable/6.7, see below), .NET SDK 10.0.401. Works: 7.0.0-dev.1429.

IDE version 🧑‍💻

N/A (command line)

Anything else we need to know? 💬

Why master is not affected. On 6.7 the Win32 OpenGL renderer composes the frame into a retained SKSurface layer and then draws it onto the swapchain with a null paint, which is SrcOver (Win32WindowWrapper.Rendering.OpenGl.cs#L229-L233):

layer.Draw(swapchain.Canvas, 0, 0, null);

With a backdrop the swapchain is transparent, so any non-opaque pixel in the layer is blended over what the previous frame left behind instead of replacing it. This is the same bug as the one fixed for the other RetainedLayer heads by #24546 (open on master); Win32 OpenGL has its own inline copy of that blit that PR does not cover, so #24546 alone would not fix this.

On master the Win32 hosts were reworked by #24153 (feat!: pluggable drawing backend abstraction). Frame retention now lives in the host (a5699a723e8, a retained FBO blitted to the default framebuffer at present), and cccb75b41c3 makes the frame clear use the window background again. That rework is a breaking change and not a backport candidate.

Related, not the same. The 6.7 backport of the SystemBackdrop work (#24810, backport of #24190) is open. It fixes how backdrops and backgrounds are applied, but its description doesn't touch the damage-layer blit above, so I don't expect it to resolve this.

Suggested 6.7 fix. Make the CopyPixels blit replace the destination instead of blending (a paint with BlendMode = SKBlendMode.Src), as #24546 does for RetainedLayer.

How this was verified. The ghosting was reproduced at runtime on 6.7.30, and the same app is clean on 7.0.0-dev.1429. For release/stable/6.7 HEAD () the confirmation is by code inspection: the blit is unchanged. The SrcOver blit as the cause is my reading of the code, not something I have confirmed by changing it. No existing backport PR targets release/stable/6.7 for this.

Activity

  1. added
    kind/bug
    triage/untriaged
    area/skia ✏️
    difficulty/medium 🤔
    area/windowing
    platform/win32 🪟
    on Oct 2, 2026
  2. MartinZikmund commented on Oct 14, 2026

    @MartinZikmund
    MemberAuthor

    Details from duplicate #25366 that are not in this issue yet:

    • Workaround exists ([6.7] Win32 SystemBackdrop (Mica/Acrylic) leaves stale pixels after navigation or resize #24926 says none): set Uno.UI.FeatureConfiguration.Rendering.UseOpenGLOnWin32 = false before building the host. The Software renderer renders correctly.
    • Also present on servicing/6.8 (code inspection), not just 6.7.
    • Minimal measured repro on Uno.WinUI 6.7.135 / Uno.Sdk 6.7.30, net10.0-desktop: a Window with SystemBackdrop = new MicaBackdrop() and a Canvas holding a 200x200 Rectangle with Fill #80FF0000, Visibility toggled every 1.5 s by a DispatcherTimer.
      • OpenGL: the centre pixel goes #F20202 -> #F90101 -> #FC0000 -> #FE0000 and never reverts when collapsed.
      • Software: #930F0D while visible, #261E1A (Mica) when collapsed.
    • On master, Win32GraphicsContext copies its retained buffer with a framebuffer blit (no blending).
  3. removed
    triage/untriaged
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/skia ✏️area/windowingdifficulty/medium 🤔kind/bugplatform/win32 🪟

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions