Sorry about that. I'm a twit. :) Switching to Mask worked.
BTW: I was looking at the Masks documentation which suggested:
Obviously I need to pay more attention to the context of things. Nonetheless, this is the solution I needed. Greatly appreciated.
You are setting the Format property - I mentioned the Mask property. The Format property uses the .net format string characters; 9 is not a valid character for numeric formats. The ms documentation lists all the valid numeric format characters here.
<Style x:Key="Digit2DecimalFormatStyle" TargetType="{x:Type igEditors:XamNumericEditor }"><Setter Property="Format" Value ="9999.##" /></Style >
Please, assist me on this. I want the first 4 numerics optional with two decimal places always shown. This is not working. It shows 9999.17 when my value is 17.00. So I want the result to be 17.00 in the field. By the way, the example above just happens to be the last attempt I made. I tried your suggestion as follows and ended up with: {double:4172} as my value.
<Style x:Key="Digit2DecimalFormatStyle" TargetType="{x:Type igEditors:XamNumericEditor }"><Setter Property="Format" Value ="{}{double:4.2}"/></Style >
Thanks,
You would set the EditorStyle to a Style for editor you are using (e.g. NumericEditor is the default editor for double fields) and set the Mask to a mask that allows 3 decimal places (e.g. "{}{double:6.3}"). I believe there are examples of doing this discussed in these forums.
I have a similar issue however I have some columns that need to have two decimal places and others that need three decimal places. How can I accomplish this? Thanks.