Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Android shapes filled with an image brush do not display the image #19142

Open
BrianDT opened this issue Jan 1, 2025 · 0 comments
Open

On Android shapes filled with an image brush do not display the image #19142

BrianDT opened this issue Jan 1, 2025 · 0 comments
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/documentation 📖 Categorizes an issue or PR as relevant to documentation project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes

Comments

@BrianDT
Copy link

BrianDT commented Jan 1, 2025

Current behavior

The primary concern was for filled paths, but rectangles do not seem to fill either if there are other shapes on the page.

Typical usage is

    <Page.Resources>
        <ImageBrush x:Key="SampleImageBrush" Stretch="Fill" ImageSource="ms-appx:///Assets/FillImage.png" />
    </Page.Resources>


                <Path Canvas.Left="120"
                      Canvas.Top="0"
                      Data="M 100,100 C 160,30 240,30 300,100 L 280,120 C 220,60 180,60 120,120 Z"
                      Fill="{StaticResource SampleImageBrush}"
                      Stroke="Crimson" StrokeThickness="1"/>

Expected behavior

Shapes should be filled as they are on other platforms

How to reproduce it (as minimally and precisely as possible)

Sample on Github https://github.com/BrianDT/UnoImageBrushOnPathIssue

The UI presents 3 shapes:

  1. A rectangle
  2. A rectranular path
  3. A curved path

Workaround

None known

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

Uno.SDK 5.2.56

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

17.12.3

Relevant plugins

No response

Anything else we need to know?

The documentation indicating that image brushes do not work on WASM needs updating.

@BrianDT BrianDT added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jan 1, 2025
@MartinZikmund MartinZikmund added project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI project/documentation 📖 Categorizes an issue or PR as relevant to documentation and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/documentation 📖 Categorizes an issue or PR as relevant to documentation project/shapes-brushes 🔶 Categorizes an issue or PR as relevant to shapes and brushes
Projects
None yet
Development

No branches or pull requests

2 participants