Thanks very much Andrew. Now it's working.
Nico
Actually the culture used by wpf elements is usually based on the XmlLanguage (FrameworkElement.Language). WPF uses the Language property to determine the Culture that should be passed into bindings. I don't believe the Language property allows you to provide a custom provider but you can set the FormatProvider of the editor.
Hy Andrew.
I have a question about the format of the XamNumericEditor. I used this mask for double values "{double:-5.3}" and it's working great. The problem I have it's with the CultureInfo from the CurrentThread. In my App.cs file I specified some settings for the CultureInfo
ci.NumberFormat.NumberDecimalSeparator = ",";
Thread.CurrentThread.CurrentUICulture = ci;
Thread.CurrentThread.CurrentCulture = ci;
The XamNumericEditor allows me the enter only numbers with 5 digits befor the comma and 3 after, which is correct because of the mask, but it will display it with "." as a separator for the digits and "," as separator for group. Shouldn't it take this settings from the CultureInfo? The same happens inside the XamDataGrid, it displays the numbers in the same format and doesn't see the CultureInfo. Is this correct or I am missing somethig?
Thanks very much.
You could set the Format property to something like "d" for when it is not in edit mode but when you are in edit mode you are going to see all of the mask characters.