Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

BUG : XAML typeConverterError on double

$
0
0

Hi all,

I spend some time try too understand why my application was not working on my nexus 5 but run very well on simulators GenyMotion and WP8.

In fact all my Simulators are in English (en-US) but my phone in French (fr-FR). And the issue when we set some Properties in double

Here the converter is using CurrentCulture ! and I really think it must used invariant Culture.

It's working well when i use this on french nexus 5

==== Stack Trace ======

07-02 23:21:32.216 E/mono (12444): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Unknown char
07-02 23:21:32.216 E/mono (12444): at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in :0
07-02 23:21:32.216 E/mono (12444): at System.Double.Parse (System.String s) [0x00000] in :0
07-02 23:21:32.216 E/mono (12444): at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func

1 minfoRetriever) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono    (12444):   at Xamarin.Forms.Xaml.BaseValueNode.SetPropertyValue (System.Object xamlelement, XmlName propertyName, System.Object value) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono    (12444):   at Xamarin.Forms.Xaml.ValueNode.ApplyTo (System.Object source, XmlName propertyName, INameScope namescope) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono    (12444):   at Xamarin.Forms.Xaml.INodeExtension.ApplyProperties (IElementNode node, System.Object source, INameScope namescope) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono    (12444):   at Xamarin.Forms.Xaml.Eleme
07-02 23:21:32.216 E/mono-rt (12444): [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Unknown char
07-02 23:21:32.216 E/mono-rt (12444):   at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono-rt (12444):   at System.Double.Parse (System.String s) [0x00000] in <filename unknown>:0 
07-02 23:21:32.216 E/mono-rt (12444):   at Xamarin.Forms.Xaml.TypeConversionExtensions.ConvertTo (System.Object value, System.Type toType, System.Func
1 minfoRetriever) [0x00000] in :0
07-02 23:21:32.216 E/mono-rt (12444): at Xamarin.Forms.Xaml.BaseValueNode.SetPropertyValue (System.Object xamlelement, XmlName propertyName, System.Object value) [0x00000] in :0
07-02 23:21:32.216 E/mono-rt (12444): at Xamarin.Forms.Xaml.ValueNode.ApplyTo (System.Object source, XmlName propertyName, INameScope namescope) [0x00000] in :0
07-02 23:21:32.216 E/mono-rt (12444): at Xamarin.Forms.Xaml.INodeExtension.ApplyProperties (IElementNode node, System.Object source, INameScope namescope) [0x00000] in :0
07-02 23:21:32.216 E/mono-rt (12444): at Xamarin.For

====================================

Thank
Vincent


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>