Skip to content

[Android and Windows] Setting the BoxView BackgroundColor is not workingΒ #12209

Closed

Description

@jsuarezruiz

Description

Setting the BoxView BackgroundColor is not working.

image

Steps to Reproduce

  1. Download or sync https://github.com/jsuarezruiz/dotnet-maui-testing-playground
  2. Launch the App on Android or Windows.
  3. Navigate to the BoxView tests.
  4. Check the Box4 test case.

Link to public reproduction project repository

https://github.com/jsuarezruiz/dotnet-maui-testing-playground

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows

Affected platform versions

Android 13

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. added
    t/bugSomething isn't working
    legacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
    on Dec 19, 2022
  2. jsuarezruiz commented on Dec 19, 2022

    @jsuarezruiz
    ContributorAuthor

    Cannot reproduce the issue on the .NET MAUI Gallery. Need to check with more details if is related with the default styles, etc.

  3. added this to the Backlog milestone on Dec 19, 2022
  4. holecekp commented on Dec 19, 2022

    @holecekp

    This issue has already been reported in #10850. BackgroundColor is not working. I do not know why it could not be reproduced but multiple people have this issue. Basically, there are 3 BoxView properties that can be used to set the background: BackgroundColor, Color and Background. Only Color works. The other two are broken and I think that they never worked. The workaround is to use Color instead of BackgroundColor. It can be also fixed by modifying the default styles. But it works only for a solid color. There is no workaround for gradients.

  5. added
    s/triagedIssue has been reviewed
    s/verifiedVerified / Reproducible Issue ready for Engineering Triage
    on Jun 2, 2023
  6. jinxinjuan commented on Jun 5, 2023

    @jinxinjuan

    Verified this issue with Visual Studio Enterprise 17.7.0 Preview 1.0. Can repro on Android and windows platform with sample project.
    /dotnet-maui-testing-playground

  7. modified the milestones: Backlog, .NET 8 on Aug 4, 2023
  8. ghost locked as resolved and limited conversation to collaborators on Sep 8, 2023
  9. added
    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawing
    and removed
    legacy-area-controlsLabel, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor
    on May 13, 2024
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

    area-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingfixed-in-8.0.0-preview.1.7762Look for this fix in 8.0.0-preview.1.7762!platform/androidplatform/windowss/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