maui: Another problem Occurs in Release Mode, Dynamic Color or Programmatically C# not Changed... [RELEASE MODE ONLY]

Description

In debug mode my App buttons and text update fine. But on RELEASE MODE the color not changing…

//Sample Dynamic color change on tapped...

//this label will not change (TAPPED AND APPLY) background color in C# on RELEASE MODE.
 this.titleTxt.BackgroundColor = App.CurrentMarkingColor;  

//this Button will not change background color on Clicked (Clicked AND APPLY)  C# code on RELEASE MODE.
button. BackgroundColor = Colors.Green; 

Steps to Reproduce

It seems only android always have issues…

Link to public reproduction project repository

I dont have sample

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android

Did you find any workaround?

No response

Relevant log output

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (2 by maintainers)

Most upvoted comments

Found a workaround for android. After setting the background insert this line CounterBtn.Handler.UpdateValue("Background");

MAUI is still full of basic bugs. I cannot believe that it was released this way

Had same problem, I was shocked when i saw at playstore… Solved by changing backgroundcolor to background property on my button

Same problem for me, I have a property that activates a trigger when its value changes, that manages the background color of a button. In debug is all ok, but not in release. I also tried to replace the trigger with a converter to return a Maui.Graphics.Color, but the background color doesn’t change only in release.

I’m testing on Android, the problem appears both with emulator than with phisical device.

This is very annoying because the app it’s not presentable with bugs like these, and the customer can’t accept that is another platform bug (the question could be: why don’t you choose another platform?),

We need to know when it will be fixed

Changing the backgroundcolor on entry control in runtime does not work on Android

This bug remains on dotnet 7.0. Any news? It’s been 2 months that a developer cannot change the background color of elements by c#.