Skip to content

[v2.0.0-rc6.1][Avalonia] When the chart background is set to transparent, the transparent area directly penetrates to the desktop. #1984

@1072643169

Description

@1072643169

When the chart background is set to transparent, the transparent area directly penetrates to the desktop, ignoring the contents of the lower controls and windows. I don't think this is in line with common usage habits and needs.

In gif(7.3mb)(5.3mb), observe the actual rendering under different conditions by adjusting the background color of the window and chart.

Image

Image

Through debugging, the cause of the problem is “Canvas.Clear(Background)“ in the ”SkiaSharpDrawingContext.OnBeginDraw()” method,The default layer connects directly to the underlying operating system。If “Canvas.SaveLayer()” is executed before then,"Clear()" will only affect new layers。

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions