Skip to content

[v12] [Regression] ExtendClientAreaToDecorationsHint Breaks Transparency/Acrylic Blur/Mica Due To WindowDrawnDecorations #21082

Description

@LabrynthKing

Describe the bug

In v12, TransparencyLevelHint="Transparent", does not seem to make the window transparent and instead produces a black background. AcrylicBlur, Blur, Mica seem to also reproduce the same issue where the background is black.

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="using:TestProject.ViewModels"
        x:Class="TestProject.Views.Test2Window"
        Width="400" Height="400"
        Title="Test2Window"
        Background="Transparent"
        TransparencyLevelHint="Transparent"
        WindowDecorations="None"
        WindowStartupLocation="CenterScreen"
        CanResize="False"
        CanMaximize="False"
        CanMinimize="False"
        Topmost="True"
        ExtendClientAreaToDecorationsHint="True">

I have also tried just not mentioning background but it reproduces the same issue

To Reproduce

  1. Be On Avalonia 12.0.0-rc2
  2. Make A New Window
  3. Use TransparencyLevelHint="Transparent" In The Window Or Mica/Blur/AcrylicBlur etc.
  4. The Result Is A Black Background

Expected behavior

The Window Should Be Transparent As In Example 1 From Avalonia 11.3.13

Image

However, The Window Is Black In Avalonia 12.0.0-rc2

Image

Avalonia version

12.0.0-rc2

OS

Windows

Additional context

OS: Windows 11 25H2 (Build 26200.8037)
Avalonia: 12.0.0-rc2
Last Working Version (According To My Testing): 11.3.13
.NET: 10.0.201 SDK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions