Last week, using Blend 2012 in a Windows Phone 8 Project caused a weird error. An error hard to know why it is happening and which sentence is the guilty.
The error says:
“Unable to cast object of type ‘System.Reflection.CustomAttributeData’ to type ‘System.ComponentModel.TypeConverterAttribute’
If you search on the Internet about this error you can find some webs talking about Update 2 of Visual Studio 2012 in WP8 projects.
I was working with DataTrigger and ChangePropertyAction in Windows Phone 8 using Blend 2012. From properties tab I put the Binding, the Value to compare, the property to modify and finally the value to assign.
In this case the property was Source from Image Control and Blend 2012 write in XAML this piece of code as follows: