Cannot resolve symbol in XAML
Hi,
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
sid999
Please sign in to leave a comment.