xamarin / Xamarin.PropertyEditing

MIT License
24 stars 16 forks source link

Decimal values from another locations are not handled correctly in NumericTextField #662

Open netonjm opened 5 years ago

netonjm commented 5 years ago

https://github.com/xamarin/Xamarin.PropertyEditing/blob/f2f3549c656b566a32ee52538298f06ce43190d3/Xamarin.PropertyEditing.Mac/Controls/Custom/NumericSpinEditor.cs#L245-L255

It's not handling culture infos (european like for example Spain) where NumericDecimalSeparator is "dot" and not the "comma"

I recommend use a.ToString(System.Globalization.CultureInfo.InvariantCulture); for this cases