Hi everyone,
I have an issue in setting the property "Format" for xamnumeric editor in the xamdatagrid.I want to display as well as accept a number in the format "12 345 678" instead of "12345678" i have set the Format Property value as "### ### ###". Now the problem is, though the number is displaying in the format i desired, but the control is not accepting "0" as user input,i.e., "0" is not displaying in the screen.Here is the part of code.
<Style TargetType="{x:Type igEditors:XamNumericEditor}"><Setter Property="Mask"
Value="-nnnnnnnnn" />
<Setter Property="ValueType"
Value="{x:Type sys:Double}"/>
<Setter Property="Format"
Value="### ### ###"/>
</Style>
Can anyone help me in this?
Hi SRINIVAS STP,
Have you had a chance to try out Anastas' suggestion. Let us know if you have any further questions.
Thank you very much Mr.Anastas for your response, among the two ideas you suggested, the second option is not giving me the expected output. I couldn't reproduce the first idea. Please can you elaborate the first idea, writing the code in the code behind?..As i am new to WPF I couldn't reproduce your first suggestion. Thank you