You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android and Windows] Setting the BoxView BackgroundColor is not workingΒ #12209
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.
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
Activity
jsuarezruiz commentedon Dec 19, 2022
Cannot reproduce the issue on the .NET MAUI Gallery. Need to check with more details if is related with the default styles, etc.
holecekp commentedon Dec 19, 2022
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.
jinxinjuan commentedon Jun 5, 2023
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