Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.
This repository was 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

@netonjm

Description

@netonjm

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions