question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Acrylic Blur does not work on Windows 11

See original GitHub issue

Describe the bug Win2d acrylic blur does not work on Windows 11 build 22000.160. This also breaks TransparencyLevel.Blur if WinUI compositor is enabled.

DWM transparency and blur works fine.

To Reproduce Steps to reproduce the behavior:

  1. Create new project from template
  2. Set TransparencyLevelHint.AcrylicBlur on the main window.
  3. Set background to null.
  4. Run

This can also be observed in the SampleApp.

Expected behavior The acrylic layer should not be opaque.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 11 22000.160
  • Version 0.10.3; 0.10.7 (master)

Additional context Side note: ICompositor3.CreateHostBackdropBrush() is not broken in this build of windows. ICompositor2.CreateBackdropBrush() might be though.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:28 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
gargakshitcommented, Jan 11, 2022

I got Mica to work with ExtendClientAreaToDecorationHint by using UseWindowsUIComposition = true along with ExtendClientAreaChromeHints = PreferSystemChrome

Preview of mica composition on Windows 11

<Window
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:vm="using:Avalonia.NETCoreMVVMApp1Fs.ViewModels"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
    x:Class="[ClassHere]"
    Icon="/Assets/avalonia-logo.ico"
    Title="[TitleHere]"
    TransparencyLevelHint="Mica"
    Background="{x:Null}"
    ExtendClientAreaToDecorationsHint="True"
    ExtendClientAreaChromeHints="PreferSystemChrome">
    <!-- ... -->
</Window>
2reactions
Nickelonycommented, Nov 14, 2021

Even though this issue is closed, I still have problems on Windows 11 and Acrylic Blur / Mica effects. On Windows 10, Acrylic Blur works perfectly fine, on Windows 11 it doesn’t work at all. Using Avalonia 0.10.10 and Windows 11 (22000.318)

Even the Avalonia Control Gallery demo doesn’t seem to have working acrylic either.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10 Acrylic blur effect broken
Windows 10 Acrylic blur effect broken. Hi,. I'm not exactly sure when it happend ... If it still doesn't work, let's do a...
Read more >
Is the Transparency Effect Not Working on Windows 11 ...
Is the Transparency Effect Not Working on Windows 11? Try These 9 Fixes · 1. Ensure the Transparency Effect Is Enabled Under Windows...
Read more >
Enable or Disable Acrylic Blur Effect on Sign-in Screen ...
This tutorial will show you how to enable or disable the acrylic blur effect on the sign-in screen background image for all users...
Read more >
Acrylic not working in Windows 11
For some reason acrylic hasn't worked for quite a while now. Sidebar and so forth in themes that used to have transparency and...
Read more >
How to Disable or Enable Acrylic Blur on Sign-in Screen in ...
Here's a step-by-step guide to disable or enable acrylic blur effect on sign-in screen in Windows 11. Remove blur on Win 11 login...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found