This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We are using the NumericTextBox for several data entry controls in a WPF application where we are using the MVVM pattern - so the controls are bound to a double property. Everything works just great on US English Windows. Now on German Windows this happens:
This kind of scenario happens to all the NumericTextBox controls. We also have the Mindscape graph in this product and it shows numeric values on German Windows with the comma - which is correct. Any insight is welcome. This goes for French Windows also cymrieg PS. If you don't want to install German Windows to try this then I duplicated it, on Win7, by going to the Control Panel:
I thought WPF/.NET programs were all Unicode - no? |
|
|
Hello Thanks for contacting us about this. We have designed the numeric text boxes to support any language, and so the comma symbol should indeed be used in the scenario you described. However, I have tried this at my end and everything seems to be working as expected. I do remember there was a bug related to the numeric text box culture support a while ago, so it may simply be a case that you don't have the latest version of WPF Elements. Try install the latest nightly build of WPF Elements and see if this resolves the problem: http://www.mindscapehq.com/products/wpfelements/nightly-builds -Jason Fauchelle |
|
|
Thanks for the response it got me looking else where and I needed to add this line to our App.xaml.cs file in the OnStartup method: FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag))); |
|
|
Great to hear you got it working! -Jason Fauchelle |
|