Bug 36386 - SearchBar has No Textcolor
Summary: SearchBar has No Textcolor
Status: RESOLVED DUPLICATE of bug 36042
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-11-30 18:13 UTC by Rich Seviora
Modified: 2015-11-30 22:13 UTC (History)
1 user (show)

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 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 Rich Seviora 2015-11-30 18:13:25 UTC
Placeholder and TextColor values are not set. Inspection of view in debugging reveals that SearchBar.TextColor and SearchBar.PlaceholderColor both have -1 values on all attributes(RGBA, HSL).

Comment 1 Rich Seviora 2015-11-30 18:55:27 UTC
Further troubleshooting reveals that it's not listening to the style configured for it.  Making the following changes to my application resource dictionary (APPLICATION_NAME.xaml) did not update the component. Only setting the properties post initialization was effective.

    <Style TargetType="SearchBar">
      <Setter Property="TextColor" Value="Black" />
      <Setter Property="PlaceholderColor" Value="Gray" />
Comment 2 Paul DiPietro [MSFT] 2015-11-30 22:13:13 UTC

*** This bug has been marked as a duplicate of bug 36042 ***