hi,
I am following this tutorial :
https://github.com/xamarin/xamarin-forms-book-samples/tree/master/Chapter08/ColorViewList
but when running the application I got the error : System.Reflection.TargetInvocationException
I think that the problem/errror message is related to some error in Xaml files:
can someone help me to solve this problem?
regards,
PCaridade
Microsoft Visual Studio Professional 2015 14.0.25431.01 Update 3
Visual Studio Tools for UWA 14.0.25527.01
Xamarin 4.2.0.719 (15694b9)
Xamarin.Android 7.0.1.6 (5a02b03)
Xamarin.iOS 10.2.0.4 (b638977)
I have been playing this project and I don't have any problem. Well, I've had to change the a method in ColorView.xaml.cs because it's deprecated but I don't think that is relevant to your problem:
Color color = (Color)colorTypeConv.ConvertFrom(colorName); // deprecated Color color = (Color)colorTypeConv.ConvertFromInvariantString(colorName); // no deprecated
Your error appear on every platforms?
Answers
I have been playing this project and I don't have any problem. Well, I've had to change the a method in ColorView.xaml.cs because it's deprecated but I don't think that is relevant to your problem:
Your error appear on every platforms?
hi,
I saw the "deprecated" warning, but never crossed my mind that a "deprecated" function would cause an error.
In Android (native/java) sometimes I use deprectated functions or the functions become deprecated with new versions, but the application still running until I have time to upgrade them to new functions.
Thank you.
I struggled for a while with this as well, perhaps even an hour or two - Thank you for this!