Search code examples
buttonxamarin.formspopupwindowtextcolor

Xamarin Forms DisplayAlert Button TextColor


How would I change the Button text color on a Xamarin Forms DisplayAlert dialog?


Solution

  • Possible to change color with the help of custom renderers for each platform. You have access to native api inside custom renderer. But need to be sure that is needed, because it is not recommended (for iOS sure).

    The UIAlertView class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.

    Relative topic for iOS here.