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 doesn't work for published apps

See original GitHub issue

Describe the bug Acrylic doesn’t work when the app has been published, it only works when debugging.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Avalonia MVVM project
  2. Set XAML to:
<Window ...
        TransparencyLevelHint="AcrylicBlur"
        Background="Transparent">

    <Panel>
        <ExperimentalAcrylicBorder  IsHitTestVisible="False">
            <ExperimentalAcrylicBorder.Material>
                <ExperimentalAcrylicMaterial TintColor="Black"
                                             TintOpacity="0.5"
                                             MaterialOpacity="0.65"
                                             BackgroundSource="Digger"/>
            </ExperimentalAcrylicBorder.Material>
        </ExperimentalAcrylicBorder>
    </Panel>
</Window>

Expected behavior Acrylic should work for both debug AND published application.

Screenshots image

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: 21H2
  • OS build: 22000.778

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
PerfectlyFineCodecommented, Jul 26, 2022

@PerfectlyFineCode acrylic in your build works for me, but I see that winui composition wasn’t enabled. Even though I decompiled it and saw WinUIComposition=true in your code, it wasn’t applied in runtime. Acrylic without winui composition is very buggy and might not work on every OS.

I wonder if some native dependencies are missed depending on a way how you build it. You might need to try to build it with runtime identifier win7-x64 instead of win-x64.

I apologize for a late answer, I just checked now and it is exactly that issue. Works fine now for me when I compiled it as win7-x64 using CLI instead of VS’s GUI.

1reaction
maxkatz6commented, Jul 24, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

[FIX] Acrylic Effects Not Working On Windows 10 Virtual ...
1. Start Windows 10 virtual machine and make sure Transparency effects are On at Settings app > Personalization > Colors. · 2. Press...
Read more >
Windows 10 Acrylic blur effect broken
Hi,I'm not exactly sure when it happend but I recently noticed that my taskbar and other Windows menus did not show that nice...
Read more >
App crashes when setting Acrylic background | WinUI 3
I am making a WinUI 3 app in C++. I tried setting the backdrop of the window to acrylic but it does not...
Read more >
Acrylic DNS Proxy
Acrylic DNS Proxy. Acrylic is a local DNS proxy for Windows which improves the performance of your computer by caching the responses coming...
Read more >
A Comprehensive Guide to Gluing Acrylic
It works great for so many things – but not really for acrylic to acrylic. It does, however, work well for acrylic to...
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