Change the button color in alert/action sheet in ios and android

Jeff Pfahl 91 Reputation points
2022-10-13T16:22:11.457+00:00

What to change the color used on the buttons in alert and action sheets in ios and android.

Developer technologies .NET .NET MAUI
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2022-10-14T06:07:41.333+00:00

    Hello,

    There is no such an API to change the button color in alert or action on MAUI.

    It is recommended to use Popup to customize it.

    Please refer to Popup.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Jeff Pfahl 91 Reputation points
    2022-10-18T18:36:22.03+00:00

    You can set the color for android by changing the colors in Platforms/Android/Resources/values/Colors.xml. Have not found a solution for iOS.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.