Localisation issue with DoubleEditBox

Editors for WPF Forum

Posted 10 years ago by Rithesh
Version: 14.1.0602
Avatar

Hi,

 I am using DoubleEditBox inside actipro PropertyGrid. I set my systems Region and Language -> Format to French. And I run my application in en-US culture, but the DoubleEditBox displays the decimal separator as "," instead of ".".

  I tried to set the Language property of the DoubleEditBox and the PropertyGrid to use the CurrentUICulture value. But DoubleEditBox always takes the value for format from the system instead of Applications CurrentUICulture.

Is there a way I can avoid this and program the propertyGrid and DoubleEditBox to use the CurrentUICulture instead of system format information.

regards,

Rithesh

Comments (3)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Rithesh,

When writing apps, per Microsoft guidelines, CurrentCulture is used for things like date/number formatting and not CurrentUICulture.  CurrentUICulture is only supposed to be used in .NET for determining which string resource dictionary to pull.

Our products use CurrentCulture property for determining which date/number formats to use in the editors.  If the CurrentCulture is set to French then the decimal separator should show up differently.


Actipro Software Support

Posted 10 years ago by Rithesh
Avatar

Hi,

    Well is there a way where the editors can be programmed to use a different culture than the CurrentCulture. Since my software is running in en-US culture I expect even the date and number format to be in en-US format rather than French.Thanks and regards,
Rithesh

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Rithesh,

Not really since they use value converters and those always pass the thread's CurrentCulture value.  You can programmatically set a thread's CurrentCulture like this though:

http://stackoverflow.com/questions/1460023/how-can-i-change-the-currentculture-of-the-entire-process-not-just-current-thre


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.