Skip to content

.NET MAUI: There is an "Invalid color" error on iOS when drawing a pattern using the GraphicsView #22891

@Kurt427

Description

@Kurt427

Description

Please see Microsoft Q&A question ".NET MAUI: Why do I get an "Invalid color" error when drawing a pattern using the GraphicsView?" for details, including how to reproduce:

https://learn.microsoft.com/en-us/answers/questions/1691027/net-maui-why-do-i-get-an-invalid-color-error-when?page=1#answer-1537415

Leon Lu (Shanghai Wicresoft Co,.Ltd.) answered the question and suggested that I should report the issue to the MAUI GitHub.

Steps to Reproduce

  1. Build Debug version the project for an iOS simulator.
  2. Set a breakpoint at line 28 of MainPage.xaml.cs
  3. Run the project.
  4. When the breakpoint is hit, clear the Output window.
  5. Continue execution. You will see an "Invalid color" error in the Output window like the one seen under Relevant log output.

Link to public reproduction project repository

https://github.com/Kurt427/MauiGraphicsPatternTest

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No

Relevant log output

2024-06-06 10:35:51.033249-0700 TmMobile[3045:38068] [Unknown process name] Invalid color: colored pattern specified with uncolored pattern color space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions