Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
How to hide decimal point not using digit in XamCurrencyEditor
posted

<igEditors:XamCurrencyEditor Margin="0" Width="120">
    <igEditors:XamCurrencyEditor.Style>
        <Style TargetType="{x:Type igEditors:XamCurrencyEditor}">
            <Setter Property="Mask" Value="{}{currency:-12.2}"/>
        </Style>
    </igEditors:XamCurrencyEditor.Style>
</igEditors:XamCurrencyEditor>

case 1. Input "123.4" -> Output "123.4"

case 2. Input "123" -> Output "123"

case 3. Input "123.45 -> Output "123.45"

but current result are "123.40", "123.00", and "123.45"...

How to hide not using decimal point?

Parents
No Data
Reply
  • 2155
    Offline posted

    Hello Hyung Soo,

    Can you please try setting the control's Format property to “#,###.##” and see if this fulfills your requirement?

            <igEditors:XamCurrencyEditor Margin="0" Width="120" Format="#,###.##">

            </igEditors:XamCurrencyEditor>

    Let me know if I may be of further assistance.

    Thank you,
    Mihoko Kamiishi

Children
No Data