Bug 37621 - SearchBar BackgroundColor behavior inconsistent on Windows platforms
Summary: SearchBar BackgroundColor behavior inconsistent on Windows platforms
Status: IN_PROGRESS
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: E.Z. Hart [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-01-12 17:33 UTC by E.Z. Hart [MSFT]
Modified: 2017-12-15 01:27 UTC (History)
4 users (show)

Tags: Windows ac fr
Is this bug a regression?: ---
Last known good build:

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 for Bug 37621 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
IN_PROGRESS

Description E.Z. Hart [MSFT] 2016-01-12 17:33:42 UTC
The behavior of the SearchBar control's BackgroundColor property is inconsistent between the Windows platforms and inconsistent with the behavior of Entry. On all Windows platforms, when an Entry's BackgroundColor is set to something other than Default, that color remains whether the control has focus or not. 

The SearchBar should have the same behavior. Here's what's happening on each platform:

Universal Windows: Background color not applied at all (focused or unfocused)

Windows 8.1: Background color applied when unfocused, changes to default background color when focused

Windows Phone 8.1: Background color applied when unfocused, changes to default background color when focused

Windows Phone 8: Background color applied when unfocused, changes to default background color when focused
Comment 1 Mark Curtis 2016-06-17 15:02:21 UTC
BTW, it is not correctly implemented on iOS either.
Comment 2 E.Z. Hart [MSFT] 2016-06-23 17:12:38 UTC
(In reply to Mark Curtis from comment #1)
> BTW, it is not correctly implemented on iOS either.

Mark,

If you're seeing issues with the property in iOS, could you please submit a separate bug for it (ideally with a repro project or screenshots)? 

Thanks,
The XF Team
Comment 3 Samantha Houts [MSFT] 2017-12-15 01:27:52 UTC
https://github.com/xamarin/Xamarin.Forms/pull/1405