Bug 47950 - 2.3.3 Regression: XAML compilation fails with behavior property and StaticResource
Summary: 2.3.3 Regression: XAML compilation fails with behavior property and StaticRes...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.3
Hardware: Macintosh Mac OS
: --- blocker
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-11-25 11:56 UTC by Tom Gilder
Modified: 2016-12-08 15:29 UTC (History)
5 users (show)

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

Testcase (56.76 KB, application/zip)
2016-11-25 11:59 UTC, Tom Gilder

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 Tom Gilder 2016-11-25 11:56:21 UTC
Using a behavior with a StaticResource, such as:

    local:TestBehavior.ColorTest="{StaticResource MyColor}"

Results in XAML compilation error:

    "No property, bindable property, or event found for 'ColorTest' (XamlCompilationBehaviours)":

This worked in 2.3.2, but fails in 2.3.3. 

Using a value works fine:

Comment 1 Tom Gilder 2016-11-25 11:59:52 UTC
Created attachment 18672 [details]

This may be related to Bug 47703
Comment 2 Stephane Delcroix 2016-11-30 10:00:59 UTC
this is not related to #47703 (47703 is not a regression).

Comment 3 Samantha Houts [MSFT] 2016-12-02 00:42:27 UTC
Should be fixed in 2.3.3-SR1. Thank you!
Comment 4 Parmendra Kumar 2016-12-08 12:22:39 UTC
Samantha, I have checked this issue with and with latest forms version I am not getting any XAML compilation error which is mentioned in bug description.

But I am getting different runtime exception so I have filed new issue for the same: https://bugzilla.xamarin.com/show_bug.cgi?id=49307

Please have a look.
Comment 5 Parmendra Kumar 2016-12-08 12:25:19 UTC
An update for comment #4, I am not getting filed issue with latest form version so I have change bug status Verified Fixed.
Comment 6 Stephane Delcroix 2016-12-08 15:29:20 UTC
Tom, note that the issue is fixed, but the Xaml in the sample is invalid.

should be 

        <Color x:Key="MyColor">#c2d1d3</Color>

in XF, Resources properties are unassigned by default