14.2 C
New York
Sunday, September 8, 2024

ios – MAUI – undesirable button background shade


I’ve a dotnet 8 MAUI IOS app that has a view that information the consumer. I receently up to date the app from dotnet 7 to eight and now I’m having some styling points on this web page. The pause and reset buttons have a gray background at instances. The background aren’t all the time there. It’s depending on which buttons are chosen and the state of the view. Initially solely reset and pause have the bizarre background. Once you click on play it’s only reset and if you click on cease it’s only pause.

That is the realm in query:


                    
                    
                        

This code is within the view mannequin and handles when the buttons are clicked:

   public ICommand ResetCommand { get; set; }
   public ICommand PauseCommand { get; set; }

...

ResetCommand = new Command(ResetRecording);
PauseCommand = new Command(PauseRecording);

...

 non-public void PauseRecording()
        {
            if (recordAudioService != null)
            {
                isRecord = false;
                IsPauseButtonEnabled = false;
                IsStopButtonVisible = false;
                IsResumeButtonVisible = true;
                IsRecordButtonVisible = true;
                IsRestartButtonEnabled = true;
                recordAudioService.PauseRecord();
            }
        }

   non-public void ResetRecording()
        {
            if (IsRecordingAudio && !isRecord)
            {
                recordAudioService.ResetRecord();
                timerValue = new TimeSpan();
                timerRemainingValue = new TimeSpan();
                TimerLabel = string.Format("{0:mm:ss}", timerValue);
                IsRecordingAudio = false;
                IsPauseButtonEnabled = false;
                IsResumeButtonVisible = false;
                IsStopButtonVisible = false;
                IsRestartButtonEnabled = false;
                CreateTimer();
                questionNumber = 1;
                RecordingStatus = "";
                IsAnswerRecorded = false;
            }
        }

I additionally just lately up to date these packages :

        
        
        
        
        

So perhaps one in every of these has one thing to do with it?

Here’s a image of the problem in query:

enter image description here

I are not looking for that gray background across the pause button. That’s the identical background that exhibits up across the reset button as nicely.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles