Bug 60364 - Style defined in the setter not working if any of the style related property (like background color, text color etc.,) is set explicitly
Summary: Style defined in the setter not working if any of the style related property ...
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.4.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-10-25 09:40 UTC by Divakar
Modified: 2017-10-27 19:58 UTC (History)
5 users (show)

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


Attachments
Style defined in the setter not working if any of the style related property (like background color, text color etc.,) is set explicitly (315.47 KB, application/x-zip-compressed)
2017-10-25 09:40 UTC, Divakar
Details


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:
Status:
RESOLVED ANSWERED

Description Divakar 2017-10-25 09:40:22 UTC
Created attachment 25437 [details]
Style defined in the setter not working if any of the style related property (like background color, text color etc.,) is set explicitly

Hi Team,

If we defined any property like BackgroundColor in Style (Xamarin.Forms.Style), it is not reflected in view if the same BackgroundColor property is set explicitly. For example, if we set BackgroundColor of "Label" as "Blue" explicitly and set BackgroundColor of "Label" as "Red" in Style (Xamarin.Forms.Style), then the color set explicitly only applied to the label (Blue color applied instead of Red color)

We have attached the issue reproducible sample for your reference in the attachment. In the sample, we have applied blue color explicitly and applied red color through style setter to the label. If you see the output, blue color will be applied to the label's background color instead of red color.


- Divakar.
Comment 1 Paul DiPietro [MSFT] 2017-10-27 19:58:58 UTC
This is expected behavior.