Skip to content

VisualBrush stopped working in 11.3.10Β #20515

@rastislavsvoboda

Description

@rastislavsvoboda

Describe the bug

upgrading from 11.3.9 to 11.3.10 (or 11.3.11) VisualBrush does now show

To Reproduce

create project with Avalonia 11.3.9, place this to MainWindow

    <Rectangle Width="300"
               Height="300"
               Stroke="Red"
               StrokeThickness="3">
        <Rectangle.Fill>
            <VisualBrush DestinationRect="0,0,100,100"
                         SourceRect="0,0,100,100"
                         Stretch="None"
                         TileMode="Tile">
                <VisualBrush.Visual>
                    <Canvas Width="50" Height="50">
                        <Line Stroke="Green"
                              StrokeThickness="50"
                              StartPoint="0,0"
                              EndPoint="0,100" />
                        <Line Stroke="Green"
                              StrokeThickness="50"
                              StartPoint="0,0"
                              EndPoint="100,0" />
                    </Canvas>
                </VisualBrush.Visual>
                <VisualBrush.Transform>
                    <ScaleTransform ScaleX="0.05" ScaleY="0.05" />
                </VisualBrush.Transform>
            </VisualBrush>
        </Rectangle.Fill>
    </Rectangle>

some green fill with pattern is showing

Image

upgrade to Avalonia 11.3.10, no green pattern is showing

Image

Expected behavior

No response

Avalonia version

11.3.10, 11.3.11

OS

No response

Additional context

No response

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