Bug 61011 - Style Setter using x:Static stopped working
Summary: Style Setter using x:Static stopped working
Status: RESOLVED ANSWERED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-12-06 23:20 UTC by Taylor Buchanan
Modified: 2017-12-07 13:55 UTC (History)
1 user (show)

Tags: style setter static
Is this bug a regression?: Yes
Last known good build: 2.3.4.270


Attachments
Previous version working w/ current version reproduction (1.06 MB, application/x-zip-compressed)
2017-12-06 23:20 UTC, Taylor Buchanan
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 Taylor Buchanan 2017-12-06 23:20:06 UTC
Created attachment 25927 [details]
Previous version working w/ current version reproduction

#### Overview:
When using a Style to set an object property with x:Static, the property is never set.

#### Steps to Reproduce:
1. Create a Style with a Setter using x:Static
2. Apply the Style to the desired control

#### Actual Results:
The property is never set and remains null

#### Expected Results:
The property is set to the static value specified in the Style

#### Build Date & Hardware:
Xamarin.Forms 2.5.0.121934 on Windows 10 Enterprise 1703

#### Additional Information:
This was working fine in previous versions of Xamarin Forms. I have included a working example using 2.3.4.270 with roughly the same code as the reproduction.
Comment 1 Samantha Houts [MSFT] 2017-12-07 00:08:40 UTC
Thank you for your submission. At this time, all new reports should be made on the Xamarin.Forms GitHub Issues repository. Please resubmit this report at https://github.com/xamarin/Xamarin.Forms/issues. This Bugzilla report will now be closed and will not be monitored.
Comment 2 Taylor Buchanan 2017-12-07 13:55:02 UTC
https://github.com/xamarin/Xamarin.Forms/issues/1346