Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

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

Open
netonjm opened this issue Oct 16, 2019 · 0 comments

Comments

@netonjm
Copy link
Contributor

netonjm commented Oct 16, 2019

void SetValue (string value)
{
if (this.numericEditor.StringValue != value) {
this.numericEditor.StringValue = value;
}
}
public void SetValue (double value)
{
SetValue (value.ToString ());

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants