Cannot resolve symbol in XAML


ReSharper: 6.1
.NET 4
Windows Phone 7.1

I have a XAML file that uses a design data file. At the top of the XAML file against the root element I have "d:DataContext="{d:DesignData Source=<path_here>}"". I have the design data file set to a Build Action of DesignData. Everything works fine because in the designer my data is displayed as expected. But, ReSharper complains about "cannot resolve symbol" with it sees the following bound to a TextBlock "Text="{Binding Company.Name}"". In this instance Company is a property of type Company.

When I click the "action" link that ReShaper displays is generates a new "xmlns:" in the XAML file and modifies the binding to look like "Text="{Binding Models:Company.Name}"". This of course fails when I run the application because it is an invalid binding.

Can you tell me why this is happening?

Kind Regards


1 comment
I am experiencing the same issue. I have been using ReSharper for a month or so now and have gotten accustomed to ignoring those at the present time (bad juju).

Please sign in to leave a comment.