Bug 36711 - On Windows, when the mouse hovers over a button with BackgroundColor = White, the text changes to White and becomes unreadable
Summary: On Windows, when the mouse hovers over a button with BackgroundColor = White,...
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-12-08 12:45 UTC by John Hardman
Modified: 2016-04-13 20:09 UTC (History)
3 users (show)

Tags: Windows Button TextColor BackgroundColor White
Is this bug a regression?: ---
Last known good build:

Source code that demonstrates issue (566 bytes, application/zip)
2015-12-08 12:45 UTC, John Hardman

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description John Hardman 2015-12-08 12:45:23 UTC
Created attachment 14184 [details]
Source code that demonstrates issue

On Windows, when the mouse hovers over a button with BackgroundColor = White, the text changes to White and becomes unreadable.

The attached source code demonstrates this problem. Just build as a Windows project (I built using VS2015 and run on Windows 10) and run. Hover the mouse over the button. It changes to white on white and so is unreadable.

Either some more intelligent code is required to generate a different, but readable, color combination, or another property is required to allow an alternate text color to be specified.

On Windows Phone, when using the attached code, the button changes to white on blue when the user holds a finger down on the button. On Android, the background color changes but to a color that still leaves the text readable. Only on Windows does the text become unreadable.
Comment 1 John Miller [MSFT] 2016-01-04 18:22:13 UTC
I was able to just paste the attached code into a sample and reproduce this: http://screencast.com/t/Zg0ynf20q

It seems that the OnHover (Highlight) color of a button text is white by default.

Possible Workaround: Use a renderer to set that color to something other than white.
Comment 2 Jason Smith [MSFT] 2016-04-13 20:09:24 UTC
Thank you for taking the time to submit this feature request. We like this idea and have added it to our internal feature tracking system.

Warm regards,
Xamarin Forms Team