Hello,
When we change the culture of windows to a culture which the decimal separator is not English (I mean dot => . ) some features of Thinkgeo like contour stop working. The easiest is just asking users to change the decimal separator from whatever like the comma to the dot. I was thinking maybe this has fixed in latest version of MapSuite? Just upgraded to version 9 and tried on a machine with Swedish culture but apparently it hasn’t fixed yet.
Also, tried to force the culture of the application to be English always using below snippet but it didn’t help.
protected
override
void
OnStartup(StartupEventArgs e)
{
Thread.CurrentThread.CurrentCulture =
new
CultureInfo(
“en-GB”
);
Thread.CurrentThread.CurrentUICulture =
new
CultureInfo(
“en-GB”
);
NumberFormatInfo nfi = System.Threading.Thread.CurrentThread
.CurrentCulture.NumberFormat;
nfi.CurrencySymbol =
“USD”
;
nfi.CurrencyDecimalSeparator =
“.”
;
nfi.CurrencyDecimalDigits = 0;
nfi = System.Threading.Thread.CurrentThread
.CurrentUICulture.NumberFormat;
nfi.CurrencySymbol =
“USD”
;
nfi.CurrencyDecimalSeparator =
“.”
;
nfi.CurrencyDecimalDigits = 0;
FrameworkElement.LanguageProperty.OverrideMetadata(
typeof
(FrameworkElement),
new
FrameworkPropertyMetadata(XmlLanguage.GetLanguage(
CultureInfo.CurrentCulture.IetfLanguageTag)));
base
.OnStartup(e);
}
How would I fix this issue without asking users to change their culture?
Is Mapsuite compatible with other cultures and decimal separators?
Thanks,
Shahin