Skip to content

Windows.UI.Color ToString does not behave the same as UWP #5189

Closed

Description

@kazo0

See https://docs.microsoft.com/en-us/uwp/api/windows.ui.color?view=winrt-19041#tostring-behavior-for-color

Calling ToString on a Color should behave like so:
A=255, R=0, G=128, B=255 is "#FF0080FF".

Current behavior

For a Color with properties: A=255, R=0, G=128, B=255
Uno's ToString for Color returns a string of [Color: 000000FF;00000000;00000080;000000FF]

Expected behavior

For a Color with properties: A=255, R=0, G=128, B=255
Uno's ToString for Color should return a string of #FF0080FF

Environment

  • Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
  • Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
  • Uno.SourceGenerationTasks
  • Uno.UI.RemoteControl / Uno.WinUI.RemoteControl
  • Other:

Nuget Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renderers for Xamarin.Forms
  • macOS
  • Skia
    • WPF
    • GTK (Linux)
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

IDE:

  • Visual Studio 2017 (version: )
  • Visual Studio 2019 (version: )
  • Visual Studio for Mac (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )
  • Visual Studio Code (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

Activity

  1. added
    kind/bug
    triage/untriaged
    on Feb 9, 2021
  2. added
    difficulty/tbd
    on Feb 15, 2021
  3. added
    difficulty/starter 🚀
    good first issue
    and removed
    difficulty/tbd
    triage/untriaged
    on Jun 4, 2021
  4. added this to the 3.9 milestone on Jul 18, 2021
  5. MartinZikmund commented on Jul 19, 2021

    @MartinZikmund
    Member

    Fixed in #6437

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter 🚀good first issuekind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions